/**
 * ShiftMint — unified auth pages (login, forgot/reset password).
 * Split-screen shell: marketing intro on the left, form card on the right.
 * Uses the site's own design tokens (see public.css :root).
 */

/* ---- Section & split shell -------------------------------------------------- */
.marketing-auth-page .auth-section {
    padding: 56px 20px 72px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 163, 0.14), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255, 86, 141, 0.12), transparent 50%),
        var(--bg-alt);
}

.auth-shell {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ---- Intro (left) ----------------------------------------------------------- */
.auth-shell__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-intro-logo img {
    height: 42px;
    width: auto;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    width: fit-content;
}

.auth-badge svg { width: 15px; height: 15px; }

.auth-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    line-height: 1.14;
}

.auth-copy {
    color: var(--ink-soft);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 440px;
}

.auth-benefits {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-benefits svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-back-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-back-site:hover { color: var(--brand-dark); }
.auth-back-site svg { width: 16px; height: 16px; }

/* ---- Card (right) ----------------------------------------------------------- */
.auth-shell__form { width: 100%; display: flex; flex-direction: column; gap: 18px; }

/* ---- Full-width wizard shell (registration) --------------------------------- */
.auth-section--wizard { padding: 44px 20px 72px; }

.auth-wizard {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-wizard__head { display: flex; flex-direction: column; gap: 14px; }

.auth-wizard__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

.auth-wizard__copy {
    color: var(--ink-soft);
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 620px;
}

.auth-card--wizard { padding: 40px 48px; }

/* Two-up form fields have more room on the full-width card. */
.auth-card--wizard .auth-grid--2 { gap: 0 24px; }

@media (max-width: 720px) {
    .auth-section--wizard { padding: 28px 16px 48px; }
    .auth-wizard__title { font-size: 1.7rem; }
    .auth-card--wizard { padding: 28px 22px; }
    .auth-card--wizard .auth-grid--2 { grid-template-columns: 1fr; }
}

/* ---- Registration progress -------------------------------------------------- */
.reg-progress {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.reg-progress__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.reg-progress__count { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.reg-progress__label { color: var(--brand-dark); font-weight: 600; font-size: 0.85rem; }

.reg-progress__track {
    height: 6px;
    border-radius: 999px;
    background: var(--brand-soft);
    overflow: hidden;
}

.reg-progress__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    transition: width .3s ease;
}

.reg-progress__steps {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.reg-progress__step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.reg-progress__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--muted);
}

.reg-progress__step.is-active { color: var(--ink); }
.reg-progress__step.is-active .reg-progress__dot {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.reg-progress__step.is-done { color: var(--brand-dark); }
.reg-progress__step.is-done .reg-progress__dot {
    background: var(--brand-soft);
    border-color: var(--brand-light);
    color: var(--brand-dark);
}

/* ---- Layout helpers --------------------------------------------------------- */
.auth-grid { display: grid; gap: 0 16px; }
.auth-grid--2 { grid-template-columns: 1fr 1fr; }
.auth-optional { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.auth-divider { border: none; border-top: 1px solid var(--line); margin: 6px 0 18px; }
.auth-subhead { font-weight: 700; color: var(--ink); margin: 0 0 14px; font-size: 0.95rem; }

.auth-form textarea.form-control { resize: vertical; min-height: 84px; }

/* ---- File upload dropzones -------------------------------------------------- */
.auth-file {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 26px 20px;
    border: 1.5px dashed var(--line-strong, var(--line));
    border-radius: 16px;
    background: var(--bg-alt);
    cursor: pointer;
    margin-bottom: 1.15rem;
    transition: border-color .18s ease, background .18s ease;
}

.auth-file:hover { border-color: var(--brand-light); background: var(--brand-soft); }
.auth-file svg { width: 30px; height: 30px; color: var(--brand); }
.auth-file__title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.auth-file__hint { color: var(--muted); font-size: 0.82rem; }
.auth-file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.auth-file--compact {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 14px 18px;
}
.auth-file--compact svg { width: 22px; height: 22px; flex-shrink: 0; }
.auth-file--compact .auth-file__title { flex: 1; }

/* ---- Skill chips ------------------------------------------------------------ */
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chip { position: relative; }
.skill-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.skill-chip span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s ease;
}
.skill-chip input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.skill-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 86, 141, 0.2); }

/* ---- Checkboxes & declarations --------------------------------------------- */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.15rem;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.5;
    cursor: pointer;
}
.auth-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); }

.auth-declaration, .auth-terms {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 1.15rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}
.auth-terms ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.auth-terms a { color: var(--brand-dark); font-weight: 600; }

/* ---- Account-type toggle ---------------------------------------------------- */
.auth-toggle { display: flex; gap: 10px; }
.auth-toggle__opt { flex: 1; position: relative; }
.auth-toggle__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.auth-toggle__opt span {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--ink-soft);
    font-weight: 600;
    cursor: pointer;
    transition: all .16s ease;
}
.auth-toggle__opt input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* ---- Status list & pills ---------------------------------------------------- */
.status-list { list-style: none; margin: 0 0 1.15rem; padding: 0; display: grid; gap: 10px; }
.status-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}
.status-list__label { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.status-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.status-pill--verified { background: rgba(16, 185, 129, 0.12); color: #047857; }
.status-pill--under_review { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.status-pill--missing { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }

/* ---- Review list ------------------------------------------------------------ */
.review-list { margin: 0 0 1.15rem; display: grid; gap: 0; }
.review-list__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.review-list__row dt { color: var(--muted); font-size: 0.88rem; margin: 0; }
.review-list__row dd { color: var(--ink); font-weight: 600; font-size: 0.9rem; margin: 0; text-align: right; }

/* ---- Misc ------------------------------------------------------------------- */
.auth-note {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0 0 1.15rem;
}
.auth-alert__list { margin: 0; padding-left: 18px; display: grid; gap: 3px; }

.auth-otp {
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.5rem !important;
    font-weight: 700;
    padding-left: 0.5em !important;
}

.auth-resend { text-align: center; margin-top: 14px; }
.auth-linkbtn {
    border: none;
    background: none;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}
.auth-linkbtn:hover { text-decoration: underline; }

.auth-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-done__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    margin-bottom: 4px;
}
.auth-done__icon svg { width: 34px; height: 34px; }
.auth-done .btn { margin-top: 10px; }

.auth-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 40px 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.auth-card-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.auth-card-sub {
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 0.93rem;
}

/* ---- Form ------------------------------------------------------------------- */
.auth-form { display: flex; flex-direction: column; gap: 0; }

.auth-field { margin-bottom: 1.15rem; }

.auth-form .form-label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.auth-form .form-control {
    display: block;
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form .form-control:focus {
    outline: none;
    background: var(--bg);
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(255, 86, 141, 0.15);
}

.auth-form-row {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 1.1rem;
}

.auth-link {
    font-size: 0.85rem;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover { text-decoration: underline; }

.auth-password-wrap { position: relative; }
.auth-password-wrap .form-control { padding-right: 60px; }

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}

.auth-password-toggle:hover { color: var(--brand-dark); }

.btn--block { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- Alerts ----------------------------------------------------------------- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-alert svg { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }

.auth-alert--success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.auth-alert--danger {
    background: rgba(239, 68, 68, 0.09);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---- Footer switch links ---------------------------------------------------- */
.auth-switch {
    margin-top: 22px;
    color: var(--ink-soft);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-switch a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
    .marketing-auth-page .auth-section { padding: 36px 16px 48px; }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 460px;
    }

    .auth-shell__intro { text-align: center; align-items: center; }
    .auth-copy { max-width: none; }
    .auth-benefits { text-align: left; max-width: 360px; }
    .auth-title { font-size: 1.9rem; }
    .auth-card { padding: 32px 26px; }
    .auth-grid--2 { grid-template-columns: 1fr; }
    .reg-progress__steps { display: none; }
}

@media (max-width: 480px) {
    .auth-card { padding: 26px 20px; border-radius: 18px; }
    .auth-title { font-size: 1.65rem; }
}
