/* Career Fixx — log in page: a welcome panel beside the form */

.cfx-auth {
    --au-card: #ffffff;
    --au-line: #ebe7f6;
    --au-ink: #1a1236;
    --au-text: #5b5675;
    --au-muted: #8a85a3;
    --au-soft: #f4f0fd;
    --au-input: #fbfaff;
    --au-accent: #7c3aed;
    --au-err: #e11d48;
    --au-grad: linear-gradient(135deg, #9b3cf6 0%, #7c3aed 45%, #5b21b6 100%);
    padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
    background:
        radial-gradient(rgba(155, 60, 246, .1) 1px, transparent 1.6px) 0 0 / 24px 24px,
        #f7f5fc;
}
html[data-theme="dark"] .cfx-auth {
    --au-card: #1c1733;
    --au-line: #2e2650;
    --au-ink: #f4f1ff;
    --au-text: #c8c1e2;
    --au-muted: #958eb3;
    --au-soft: rgba(168, 85, 247, .14);
    --au-input: #151029;
    --au-accent: #d8b4fe;
    --au-err: #fb7185;
    background:
        radial-gradient(rgba(155, 60, 246, .12) 1px, transparent 1.6px) 0 0 / 24px 24px,
        #0e0b1a;
}

.cfx-auth-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 1020px; margin: 0 auto; overflow: hidden; border: 1px solid var(--au-line); border-radius: 30px; background: var(--au-card); box-shadow: 0 24px 60px rgba(40, 16, 90, .12); }

/* ── welcome panel: the night background of the page banners ───────── */
.cfx-auth-side {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(26px, 3.6vw, 46px);
    background:
        radial-gradient(380px 280px at 100% 0%, rgba(155, 60, 246, .5), transparent 70%),
        radial-gradient(340px 260px at 0% 100%, rgba(124, 58, 237, .38), transparent 70%),
        #0c0820;
    color: #d3cdef;
}
.cfx-auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 80%); }
.cfx-auth-side::after { content: ''; position: absolute; right: -90px; bottom: -90px; z-index: -1; width: 240px; height: 240px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255, 255, 255, .045), 0 0 0 70px rgba(255, 255, 255, .025); }
.cfx-auth-side-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 18px; background: var(--au-grad); color: #fff; font-size: 24px; box-shadow: 0 12px 26px rgba(124, 58, 237, .45); }
.cfx-auth .cfx-auth-side h2 { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.cfx-auth-side h2 span { background: linear-gradient(100deg, #b46cff, #a855f7 50%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cfx-auth .cfx-auth-side p { margin: 0 0 22px; color: #d3cdef; font-size: 15px; line-height: 1.7; text-align: left; }
.cfx-auth-side ul { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.cfx-auth .cfx-auth-side li { display: flex; align-items: center; gap: 12px; margin: 0; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.cfx-auth-side li i { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; background: rgba(255, 255, 255, .08); color: #d8b4fe; font-size: 16px; }
/* forgot password: the three steps of a reset, with the current one lit */
.cfx-auth-steps { position: relative; display: grid; gap: 18px; margin: 4px 0 0; padding: 0; list-style: none; }
.cfx-auth-steps::before { content: ''; position: absolute; top: 18px; bottom: 18px; left: 17px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.cfx-auth .cfx-auth-steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; color: #a89fc9; font-size: 13.5px; line-height: 1.5; }
.cfx-auth-steps li > span { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 50%; background: #0c0820; color: #c8c1e2; font-size: 14px; font-weight: 800; }
.cfx-auth-steps li b { display: block; color: #fff; font-size: 15px; }
.cfx-auth-steps li.is-current > span { border-color: transparent; background: var(--au-grad); color: #fff; box-shadow: 0 0 0 5px rgba(155, 60, 246, .25); }
.cfx-auth-steps li.is-done > span { border-color: transparent; background: #16a34a; color: transparent; }
.cfx-auth-steps li.is-done > span::after { content: ''; position: absolute; width: 7px; height: 12px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.cfx-auth-side-note { display: flex; gap: 10px; margin-top: auto; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .06); color: #c8c1e2; font-size: 13px; line-height: 1.55; }
.cfx-auth-side-note i { flex: none; margin-top: 2px; color: #86efac; font-size: 16px; }

/* ── form ───────────────────────────────────────────────────────────── */
.cfx-auth-main { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 52px); }
.cfx-auth .cfx-auth-head h3 { margin: 0 0 6px; color: var(--au-ink); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.cfx-auth .cfx-auth-head p { margin: 0 0 22px; color: var(--au-text); font-size: 14.5px; line-height: 1.6; text-align: left; }
.cfx-auth-head a,
.cfx-auth-foot a,
.cfx-auth-help a { color: var(--au-accent); font-weight: 700; }
.cfx-auth-head a:hover,
.cfx-auth-foot a:hover,
.cfx-auth-help a:hover { color: var(--au-accent); text-decoration: underline; }

.cfx-auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(225, 29, 72, .28); border-radius: 14px; background: rgba(225, 29, 72, .07); color: var(--au-err); font-size: 14px; font-weight: 600; line-height: 1.5; }
.cfx-auth-alert i { flex: none; margin-top: 2px; font-size: 17px; }

.cfx-auth-form { display: grid; gap: 18px; margin: 0; }
.cfx-auth-field { margin: 0; }
.cfx-auth-field label,
.cfx-auth-label-row label { display: block; margin: 0 0 7px; color: var(--au-ink); font-size: 13.5px; font-weight: 700; }
.cfx-auth-field label span { color: var(--au-err); }
.cfx-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cfx-auth-label-row a { color: var(--au-accent); font-size: 13px; font-weight: 700; }
.cfx-auth-label-row a:hover { color: var(--au-accent); text-decoration: underline; }
.cfx-auth-input { position: relative; display: flex; align-items: center; height: 52px; border: 1.5px solid var(--au-line); border-radius: 14px; background: var(--au-input); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.cfx-auth-input:focus-within { border-color: #7c3aed; background: var(--au-card); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.cfx-auth-input > i { flex: none; width: 46px; color: var(--au-muted); font-size: 17px; text-align: center; transition: color .2s ease; }
.cfx-auth-input:focus-within > i { color: #7c3aed; }
html[data-theme="dark"] .cfx-auth-input:focus-within > i { color: #d8b4fe; }
.cfx-auth .cfx-auth-input input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 14px 0 0; border: 0; border-radius: 0; outline: 0; background: transparent !important; box-shadow: none; color: var(--au-ink) !important; font-size: 15px; }
.cfx-auth .cfx-auth-input input::placeholder { color: var(--au-muted); }
html[data-theme="dark"] .cfx-auth .cfx-auth-input input { border: 0 !important; }
.cfx-auth-eye { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 7px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--au-muted); font-size: 17px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cfx-auth-eye:hover { background: var(--au-soft); color: var(--au-accent); }
.cfx-auth-caps { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #d97706; font-size: 12.5px; font-weight: 600; }
.cfx-auth-err { margin-top: 6px; color: var(--au-err); font-size: 12.5px; font-weight: 600; }

.cfx-auth-remember { display: inline-flex; align-items: center; gap: 10px; margin: -2px 0 0; color: var(--au-text); font-size: 14px; font-weight: 500; cursor: pointer; }
.cfx-auth .cfx-auth-remember input[type=checkbox] { position: static; width: 18px; height: 18px; margin: 0; opacity: 1; accent-color: #7c3aed; cursor: pointer; }

.cfx-auth-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; overflow: hidden; border: 0; border-radius: 999px; background: var(--au-grad); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 12px 26px rgba(124, 58, 237, .32); cursor: pointer; transition: gap .25s ease, box-shadow .25s ease, opacity .25s ease; }
.cfx-auth-submit:hover { gap: 16px; box-shadow: 0 16px 32px rgba(124, 58, 237, .45); }
.cfx-auth-submit.is-busy { opacity: .75; cursor: progress; }
.cfx-auth .cfx-auth-foot { margin: 0; color: var(--au-text); font-size: 14px; text-align: center; }

.cfx-auth-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--au-line); color: var(--au-muted); font-size: 13.5px; }
.cfx-auth-help i { color: var(--au-accent); font-size: 16px; }
.cfx-auth-help a.cfx-auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--au-ink); font-weight: 700; transition: gap .2s ease, color .2s ease; }
.cfx-auth-help a.cfx-auth-back:hover { gap: 10px; color: var(--au-accent); text-decoration: none; }
.cfx-auth-help-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--au-line); }

/* the reset link has been sent */
.cfx-auth-sent { margin-bottom: 22px; padding: 22px; border: 1px solid rgba(22, 163, 74, .28); border-radius: 20px; background: rgba(22, 163, 74, .06); text-align: center; }
.cfx-auth-sent-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 24px; box-shadow: 0 0 0 8px rgba(22, 163, 74, .14); }
.cfx-auth .cfx-auth-sent h3 { margin: 0 0 6px; color: var(--au-ink); font-size: 22px; }
.cfx-auth .cfx-auth-sent p { margin: 0; color: var(--au-text); font-size: 14.5px; line-height: 1.6; text-align: center; }
.cfx-auth .cfx-auth-sent p.cfx-auth-sent-tip { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 12px; color: var(--au-muted); font-size: 13px; }
.cfx-auth-sent-tip i { flex: none; margin-top: 3px; }
.cfx-auth-submit i:first-child { font-size: 17px; }
a.cfx-auth-submit,
a.cfx-auth-submit:hover { color: #fff; text-decoration: none; }

/* reset link that can't be used */
.cfx-auth-sent.is-warn { border-color: rgba(217, 119, 6, .3); background: rgba(217, 119, 6, .07); }
.cfx-auth-sent.is-warn .cfx-auth-sent-icon { background: #d97706; box-shadow: 0 0 0 8px rgba(217, 119, 6, .14); }

/* new password: strength bars and the server's two rules */
.cfx-auth-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cfx-auth-meter[hidden] { display: none; }
.cfx-auth-meter-bars { display: flex; flex: 1; gap: 5px; }
.cfx-auth-meter-bars i { flex: 1; height: 5px; border-radius: 99px; background: var(--au-line); transition: background .25s ease; }
.cfx-auth-meter-label { min-width: 46px; color: var(--au-muted); font-size: 12px; font-weight: 700; text-align: right; }
.cfx-auth-meter[data-score="1"] .cfx-auth-meter-bars i:nth-child(-n+1) { background: #e11d48; }
.cfx-auth-meter[data-score="2"] .cfx-auth-meter-bars i:nth-child(-n+2) { background: #f97316; }
.cfx-auth-meter[data-score="3"] .cfx-auth-meter-bars i:nth-child(-n+3) { background: #eab308; }
.cfx-auth-meter[data-score="4"] .cfx-auth-meter-bars i { background: #16a34a; }
.cfx-auth-meter[data-score="1"] .cfx-auth-meter-label { color: #e11d48; }
.cfx-auth-meter[data-score="2"] .cfx-auth-meter-label { color: #f97316; }
.cfx-auth-meter[data-score="3"] .cfx-auth-meter-label { color: #ca8a04; }
.cfx-auth-meter[data-score="4"] .cfx-auth-meter-label { color: #16a34a; }
.cfx-auth-rules { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -4px 0 0; padding: 0; list-style: none; }
.cfx-auth .cfx-auth-rules li { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--au-muted); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.cfx-auth-rules li i { position: relative; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--au-line); border-radius: 50%; transition: background .2s ease, border-color .2s ease; }
.cfx-auth .cfx-auth-rules li.is-ok { color: #16a34a; }
.cfx-auth-rules li.is-ok i { border-color: #16a34a; background: #16a34a; }
.cfx-auth-rules li.is-ok i::after { content: ''; position: absolute; top: 2px; left: 5px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cfx-auth .cfx-auth-rules li.is-bad { color: var(--au-err); }
.cfx-auth-rules li.is-bad i { border-color: var(--au-err); }

/* ── extras: learner count, the badge above the title, "New to Career Fixx?" ── */
.cfx-auth-proof { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -12px rgba(20, 5, 50, .45); }
.cfx-auth-proof-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: #fff; color: #7c3aed; font-size: 19px; box-shadow: inset 0 -3px 0 #e6ddfa; }
.cfx-auth-proof b { display: block; color: #fff; font-size: 16px; line-height: 1.3; }
.cfx-auth-proof small { display: block; color: rgba(255, 255, 255, .78); font-size: 12.5px; }

.cfx-auth-chip { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 13px; border-radius: 99px; background: var(--au-soft); color: var(--au-accent); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.cfx-auth-or { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--au-muted); font-size: 13px; font-weight: 600; }
.cfx-auth-or::before,
.cfx-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--au-line); }
.cfx-auth-alt { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--au-input); color: var(--au-ink); transition: background .2s ease; }
.cfx-auth-alt:hover { background: var(--au-soft); color: var(--au-ink); }
.cfx-auth-alt-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: var(--au-grad); color: #fff; font-size: 18px; }
.cfx-auth-alt > span:nth-child(2) { flex: 1; min-width: 0; }
.cfx-auth-alt b { display: block; font-size: 15px; }
.cfx-auth-alt small { display: block; color: var(--au-muted); font-size: 12.5px; line-height: 1.45; }
.cfx-auth-alt > i { flex: none; color: var(--au-accent); font-size: 18px; transition: transform .2s ease; }
.cfx-auth-alt:hover > i { transform: translateX(3px); }

@media (max-width: 991.98px) {
    .cfx-auth-proof { display: none; }
    .cfx-auth-card { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    /* on narrow screens the welcome panel shrinks to a short header */
    .cfx-auth-side { padding: 24px; }
    .cfx-auth-side ul,
    .cfx-auth-side-note { display: none; }
    /* the reset steps stay, side by side */
    .cfx-auth-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
    .cfx-auth-steps::before { top: 17px; right: 16%; bottom: auto; left: 16%; width: auto; height: 2px; }
    .cfx-auth .cfx-auth-steps li { flex-direction: column; align-items: center; gap: 8px; font-size: 0; text-align: center; }
    .cfx-auth-steps li b { font-size: 12.5px; line-height: 1.35; }
    .cfx-auth .cfx-auth-side p { margin-bottom: 0; }
    .cfx-auth-side-icon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 15px; font-size: 20px; }
}
@media (max-width: 575.98px) {
    .cfx-auth-card { border-radius: 24px; }
    .cfx-auth-main { padding: 22px 18px 24px; }
    .cfx-auth-help { flex-direction: column; }
    .cfx-auth-help-sep { display: none; }
}
