/* Dedicated login and signup pages.
   Every rule is scoped so the compact Auth_UI modal remains unchanged. */

.auth-dedicated {
    min-width: 320px;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--bg, #f7f9fc);
    color: var(--ink, #0f172a);
}

.auth-skip {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    color: #ffffff;
    background: #123f83;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.auth-skip:focus {
    transform: translateY(0);
}

.auth-site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem clamp(1.25rem, 4vw, 4rem);
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--rule, #dfe4ec);
}

.auth-brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: var(--ink, #0f172a);
    border-radius: 12px;
    text-decoration: none;
}

.auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.auth-brand span {
    font-family: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.auth-brand:focus-visible,
.auth-switch a:focus-visible {
    outline: 3px solid #0668e1;
    outline-offset: 3px;
}

.auth-switch {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink-2, #4a5568);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-switch a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    color: #ffffff;
    background: #0668e1;
    border: 1px solid #0668e1;
    border-radius: 12px;
    box-shadow: 0 3px 0 #2346c8;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.auth-switch a:hover {
    background: #055bc4;
    transform: translateY(1px);
    box-shadow: 0 2px 0 #2346c8;
}

.auth-switch a:active {
    transform: translateY(3px);
    box-shadow: none;
}

.auth-page--split {
    width: min(100%, 1280px);
    min-height: calc(100vh - 73px);
    min-height: calc(100dvh - 73px);
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(400px, 480px);
    grid-template-areas: "visual form";
    align-items: center;
    gap: clamp(3rem, 7vw, 7.5rem);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: transparent;
}

.auth-page--split .auth-page__form {
    grid-area: form;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.auth-page--split .auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 0;
    color: var(--auth-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    animation: none;
}

.auth-page--split .auth-card--expanded .auth-logo {
    display: none;
}

.auth-page--split .auth-title {
    margin: 0 0 0.6rem;
    color: var(--auth-ink);
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.auth-page--split .auth-sub {
    max-width: 42ch;
    margin: 0 0 1.75rem;
    color: var(--auth-ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.auth-page--split .auth-card--exam-first .auth-signup-progress {
    margin: 0 0 0.35rem;
    color: #075fc9;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-page--split .auth-card--exam-first .auth-signup-step-title {
    margin: 0 0 1rem;
    color: var(--auth-ink);
    font-size: 1.25rem;
    line-height: 1.3;
}

.auth-page--split .auth-card--exam-first .auth-signup-step {
    width: 100%;
}

.auth-page--split .auth-card--exam-first .auth-signup-continue {
    width: 100%;
    margin-top: 0.15rem;
}

.auth-page--split .auth-card--exam-first .auth-signup-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-page--split .auth-card--exam-first .auth-signup-selection {
    min-width: 0;
    flex: 1;
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: #edf5ff;
    border: 1px solid #b8d8ff;
    border-radius: 12px;
}

.auth-page--split .auth-card--exam-first .auth-signup-selection__label,
.auth-page--split .auth-card--exam-first .auth-signup-selection__value {
    display: block;
}

.auth-page--split .auth-card--exam-first .auth-signup-selection__label {
    margin-bottom: 0.18rem;
    color: var(--auth-ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-page--split .auth-card--exam-first .auth-signup-selection__value {
    overflow-wrap: anywhere;
    color: var(--auth-ink);
    font-size: 0.84rem;
    line-height: 1.35;
}

.auth-page--split .auth-card--exam-first .auth-signup-back {
    flex: 0 0 auto;
    white-space: nowrap;
}

.auth-page--split .auth-card--intent-signup .auth-exam-fieldset {
    min-width: 0;
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
}

.auth-page--split .auth-card--intent-signup .auth-exam-legend {
    color: var(--auth-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.auth-page--split .auth-card--intent-signup .auth-exam-hint {
    margin-top: 0.25rem;
    color: var(--auth-ink-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.auth-page--split .auth-card--intent-signup .auth-exam-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option {
    min-width: 0;
    position: relative;
    cursor: pointer;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option input {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    opacity: 0;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option__label {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.55rem;
    color: var(--auth-ink);
    background: var(--auth-surface);
    border: 2px solid #8a96a8;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.auth-page--split .auth-card--exam-first .auth-exam-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-page--split .auth-card--exam-first .auth-exam-option__label {
    min-height: 82px;
    justify-content: flex-start;
    padding: 0.8rem;
    text-align: left;
}

.auth-page--split .auth-card--exam-first .auth-exam-option__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.auth-page--split .auth-card--exam-first .auth-exam-option__meta,
.auth-page--split .auth-card--exam-first .auth-exam-option__name {
    display: block;
}

.auth-page--split .auth-card--exam-first .auth-exam-option__meta {
    color: #075fc9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.auth-page--split .auth-card--exam-first .auth-exam-option__name {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.3;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option__label::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid #7b8798;
    border-radius: 50%;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option input:checked +
.auth-exam-option__label {
    color: #064f9e;
    background: #e8f3ff;
    border-color: #0668e1;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option input:checked +
.auth-exam-option__label::before {
    background: #0668e1;
    border-color: #0668e1;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option input:focus-visible +
.auth-exam-option__label {
    outline: 3px solid #0668e1;
    outline-offset: 3px;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option input[aria-invalid="true"] +
.auth-exam-option__label {
    border-color: #b42318;
}

.auth-page--split .auth-card--intent-signup .auth-exam-option input:disabled +
.auth-exam-option__label {
    cursor: wait;
    opacity: 0.65;
}

.auth-page--split .auth-card--expanded .auth-view-choices,
.auth-page--split .auth-card--expanded .auth-choice-stack {
    width: 100%;
}

.auth-page--split .auth-card--expanded .auth-oauth-btn,
.auth-page--split .auth-card--expanded .auth-input,
.auth-page--split .auth-card--expanded .auth-btn-primary,
.auth-page--split .auth-card--expanded .auth-btn-secondary {
    min-height: 52px;
    border-radius: 12px;
}

.auth-page--split .auth-card--expanded .auth-oauth-btn {
    color: var(--auth-ink);
    background: var(--auth-surface);
    border-color: #8a96a8;
    font-size: 0.96rem;
    font-weight: 600;
}

.auth-page--split .auth-card--expanded .auth-oauth-btn:hover {
    background: var(--bg-2, #eef3f8);
    border-color: #0668e1;
}

.auth-page--split .auth-card--expanded .auth-email-separator {
    display: block;
    margin: 1.35rem 0 1.15rem;
    color: var(--auth-ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.auth-page--split .auth-card--expanded .auth-form {
    gap: 0.65rem;
    margin: 0;
}

/* Keep dedicated pages focused: Google or email + password only.
   The shared modal can still expose the optional magic-link method. */
.auth-page--split .auth-card--expanded .auth-form > .auth-divider,
.auth-page--split .auth-card--expanded .auth-form > .auth-btn-secondary {
    display: none;
}

.auth-page--split .auth-card--expanded .auth-field-label {
    margin-top: 0.2rem;
    color: var(--auth-ink);
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-page--split .auth-card--expanded .auth-input {
    padding: 0.85rem 0.95rem;
    color: var(--auth-ink);
    background: var(--auth-surface);
    border-color: #8a96a8;
    font-size: 1rem;
}

.auth-page--split .auth-card--intent-signup .auth-field-hint {
    margin: -0.35rem 0 0.1rem;
    color: var(--auth-ink-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.auth-page--split .auth-card--expanded .auth-btn-primary {
    margin-top: 0.35rem;
    color: #ffffff;
    background: #0668e1;
    box-shadow: 0 4px 0 #2346c8;
    font-size: 0.95rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.auth-page--split .auth-card--expanded .auth-btn-primary:hover {
    background: #055bc4;
    transform: translateY(1px);
    box-shadow: 0 3px 0 #2346c8;
}

.auth-page--split .auth-card--expanded .auth-btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}

.auth-page--split .auth-card--expanded .auth-btn-secondary {
    background: transparent;
    border-color: #8a96a8;
    font-weight: 600;
}

.auth-page--split .auth-card--expanded .auth-form-affordances {
    justify-content: flex-start;
    gap: 0;
    margin-top: 0.9rem;
}

.auth-page--split .auth-card--expanded .auth-form-affordances::before {
    display: none;
}

.auth-page--split .auth-card--expanded .auth-btn-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #075fc9;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-page--split .auth-status {
    text-align: left;
}

.auth-page--split .auth-footer {
    margin-top: 1.25rem;
    text-align: left;
}

.auth-page--split .auth-page__visual {
    grid-area: visual;
    min-width: 0;
    min-height: min(650px, calc(100dvh - 145px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    overflow: hidden;
    position: relative;
    padding: clamp(2rem, 4vw, 3.5rem);
    background:
        radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.86), transparent 32%),
        linear-gradient(145deg, #edf7ff 0%, #dcecff 52%, #cadfff 100%);
    border: 1px solid #bfd8f7;
    border-radius: 32px;
    isolation: isolate;
}

.auth-page--split .auth-page__visual::before,
.auth-page--split .auth-page__visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    background: rgba(6, 104, 225, 0.1);
}

.auth-page--split .auth-page__visual::before {
    width: 260px;
    height: 260px;
    top: -110px;
    right: -90px;
}

.auth-page--split .auth-page__visual::after {
    width: 180px;
    height: 180px;
    bottom: 90px;
    left: -95px;
}

.auth-visual__canvas {
    min-height: 320px;
    display: grid;
    place-items: center;
    position: relative;
}

.auth-visual__mark {
    width: 118px;
    height: 118px;
    position: absolute;
    top: 0;
    left: 50%;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 18px 24px rgba(6, 104, 225, 0.16));
}

.auth-study-card {
    width: min(100%, 360px);
    margin-top: 76px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(93, 139, 194, 0.28);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(35, 70, 120, 0.16);
    backdrop-filter: blur(10px);
    transform: rotate(-1.5deg);
}

.auth-study-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #193b68;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-study-card__count {
    padding: 0.3rem 0.55rem;
    color: #075fc9;
    background: #e4f1ff;
    border-radius: 999px;
    text-transform: none;
}

.auth-study-step {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e2eaf3;
}

.auth-study-step__dot {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #dce6f2;
    border: 2px solid #b5c3d5;
    border-radius: 50%;
}

.auth-study-step.is-complete .auth-study-step__dot,
.auth-study-step.is-current .auth-study-step__dot {
    background: #0668e1;
    border-color: #0668e1;
}

.auth-study-step.is-complete .auth-study-step__dot::after {
    content: "✓";
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-study-step.is-current .auth-study-step__dot::after {
    content: "";
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
}

.auth-study-step strong,
.auth-study-step small {
    display: block;
}

.auth-study-step strong {
    color: #142c4c;
    font-size: 0.9rem;
}

.auth-study-step small {
    margin-top: 0.15rem;
    color: #61748d;
    font-size: 0.75rem;
}

.auth-visual__eyebrow {
    margin-bottom: 0.65rem;
    color: #075fc9;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-visual__copy h2 {
    max-width: 12ch;
    margin: 0;
    color: #102a4d;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-visual__copy > p:last-child {
    max-width: 39ch;
    margin-top: 1rem;
    color: #405b7c;
    font-size: 1rem;
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    .auth-site-header {
        background: #111722;
        border-bottom-color: #293445;
    }

    .auth-page--split .auth-card--expanded .auth-oauth-btn,
    .auth-page--split .auth-card--expanded .auth-input {
        background: #151d29;
        border-color: #738096;
    }

    .auth-page--split .auth-card--intent-signup .auth-exam-option__label {
        background: #151d29;
        border-color: #738096;
    }

    .auth-page--split .auth-card--intent-signup .auth-exam-option input:checked +
    .auth-exam-option__label {
        color: #dcecff;
        background: #123a68;
        border-color: #71b7ff;
    }

    .auth-page--split .auth-card--exam-first .auth-signup-selection {
        background: #151d29;
        border-color: #3f5875;
    }

    .auth-page--split .auth-card--exam-first .auth-signup-progress,
    .auth-page--split .auth-card--exam-first .auth-exam-option__meta {
        color: #71b7ff;
    }

    .auth-page--split .auth-page__visual {
        background:
            radial-gradient(circle at 18% 15%, rgba(78, 144, 224, 0.14), transparent 32%),
            linear-gradient(145deg, #12243a 0%, #142b49 52%, #18365b 100%);
        border-color: #294d78;
    }

    .auth-study-card {
        background: rgba(18, 30, 47, 0.94);
        border-color: rgba(111, 159, 215, 0.32);
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
    }

    .auth-study-card__header,
    .auth-study-step strong,
    .auth-visual__copy h2 {
        color: #edf5ff;
    }

    .auth-study-step {
        border-top-color: #31435a;
    }

    .auth-study-step small,
    .auth-visual__copy > p:last-child {
        color: #b9cae0;
    }

    .auth-study-card__count {
        color: #8bc5ff;
        background: #173a62;
    }

    .auth-visual__eyebrow,
    .auth-page--split .auth-card--expanded .auth-btn-link {
        color: #71b7ff;
    }
}

@media (max-width: 900px) {
    .auth-page--split {
        width: 100%;
        grid-template-columns: minmax(0, 560px);
        grid-template-areas: "form";
        justify-content: center;
        align-items: start;
        padding: clamp(2rem, 7vw, 4rem) clamp(1.25rem, 6vw, 3rem);
    }

    .auth-page--split .auth-page__visual {
        display: none;
    }
}

@media (max-width: 540px) {
    .auth-site-header {
        min-height: 64px;
        gap: 0.75rem;
        padding: 0.55rem 1rem;
    }

    .auth-brand {
        min-height: 44px;
    }

    .auth-brand img {
        width: 38px;
        height: 38px;
    }

    .auth-brand span {
        font-size: 1.2rem;
    }

    .auth-switch span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .auth-switch a {
        min-height: 40px;
        padding: 0.55rem 0.75rem;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .auth-page--split {
        min-height: calc(100vh - 65px);
        min-height: calc(100dvh - 65px);
        padding: 2rem 1rem 2.5rem;
    }

    .auth-page--split .auth-card {
        max-width: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .auth-page--split .auth-title {
        font-size: clamp(1.85rem, 9vw, 2.25rem);
    }

    .auth-page--split .auth-sub {
        margin-bottom: 1.4rem;
        font-size: 0.94rem;
    }

    .auth-page--split .auth-card--exam-first .auth-signup-account-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .auth-page--split .auth-card--exam-first .auth-signup-back {
        align-self: flex-start;
    }

    .auth-page--split .auth-card--exam-first .auth-exam-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-page--split .auth-card--intent-signup .auth-exam-options {
        gap: 0.45rem;
    }

    .auth-page--split .auth-card--intent-signup .auth-exam-option__label {
        min-height: 52px;
        gap: 0.35rem;
        padding-inline: 0.4rem;
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-skip,
    .auth-switch a,
    .auth-page--split .auth-card--expanded .auth-btn-primary,
    .auth-page--split .auth-card--intent-signup .auth-exam-option__label {
        transition: none;
    }

    .auth-switch a:hover,
    .auth-switch a:active,
    .auth-page--split .auth-card--expanded .auth-btn-primary:hover,
    .auth-page--split .auth-card--expanded .auth-btn-primary:active,
    .auth-study-card {
        transform: none;
    }
}
