:root {
    --auth-bg: linear-gradient(180deg, #eef7f1 0%, #f8fafc 100%);
    --auth-card-bg: rgba(255, 255, 255, 0.92);
    --auth-card-border: rgba(148, 163, 184, 0.24);
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-accent: #14532d;
    --auth-accent-soft: #dcfce7;
    --auth-danger: #b91c1c;
    --auth-danger-bg: #fef2f2;
    --auth-success: #166534;
    --auth-success-bg: #f0fdf4;
    --auth-input-border: #dbe4ee;
    --auth-shadow: 0 24px 50px -38px rgba(15, 23, 42, 0.55);
}

.auth-page {
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-ink);
}

.auth-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.auth-page-login .auth-shell {
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

.auth-page-login .auth-hero-card {
    width: 100%;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 430px);
    gap: 1rem;
    align-items: center;
}

.auth-page-login .auth-copy {
    display: grid;
    align-content: center;
    gap: 0.5rem;
    padding: 1.35rem 1.45rem;
}

.auth-page-login .auth-form {
    padding: 1.15rem 1.2rem;
}

.auth-page-login .auth-copy h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.auth-page-login .auth-subcopy {
    font-size: 0.96rem;
    line-height: 1.5;
}

.auth-page-login .auth-feature-list {
    margin-top: 0.7rem;
    line-height: 1.45;
}

.auth-page-login .auth-form-header {
    margin-bottom: 0.75rem;
}

.auth-page-login .auth-form-header h2 {
    font-size: 1.32rem;
}

.auth-page-login .auth-form-header p {
    font-size: 0.92rem;
}

.auth-page-login .auth-field {
    margin-bottom: 0.85rem;
}

.auth-page-login .auth-label {
    font-size: 0.9rem;
}

.auth-page-login .auth-input,
.auth-page-login .auth-submit-btn {
    min-height: 44px;
}

.auth-page-login .auth-message {
    margin-bottom: 0.7rem;
    padding: 0.75rem 0.85rem;
}

.auth-page-login .auth-links {
    margin-top: 0.9rem;
    gap: 0.45rem;
}

@media (min-width: 861px) {
    .auth-page-login .auth-hero-card {
        align-items: stretch;
    }

    .auth-page-login .auth-copy,
    .auth-page-login .auth-form {
        height: 100%;
    }

    .auth-page-login .auth-copy {
        justify-content: center;
    }
}

.auth-page-signup .auth-shell {
    min-height: calc(100dvh - 72px);
    max-width: 1320px;
    padding-top: 0.75rem;
    padding-bottom: 1.1rem;
}

.auth-page-signup .auth-hero-card-wide {
    grid-template-columns: minmax(220px, 0.72fr) minmax(460px, 1.68fr);
    gap: 1.1rem;
}

.auth-page-signup .auth-copy {
    min-width: 0;
    container-type: inline-size;
    padding: 1.5rem 1.4rem;
}

.auth-page-signup .auth-copy h1 {
    max-inline-size: 12ch;
    font-size: clamp(1.55rem, 2.2vw + 0.35rem, 2.7rem);
    line-height: 1.06;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

@supports (font-size: 1cqi) {
    .auth-page-signup .auth-copy h1 {
        font-size: clamp(1.55rem, 10cqi, 2.7rem);
    }
}

.auth-page-signup .auth-subcopy {
    font-size: 0.96rem;
    line-height: 1.5;
}

.auth-page-signup .auth-feature-list {
    margin-top: 1rem;
    line-height: 1.55;
}

.auth-page-signup .auth-form {
    padding: 1.2rem;
}

.auth-page-signup .auth-form-header {
    margin-bottom: 0.7rem;
}

.auth-page-signup .auth-form-header h2 {
    font-size: 1.32rem;
}

.auth-page-signup .auth-form-header p {
    font-size: 0.92rem;
}

.auth-hero-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px);
    gap: 1.5rem;
    align-items: start;
    padding: 0;
}

.auth-hero-card-wide {
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
}

.auth-copy,
.auth-card {
    border: 1px solid var(--auth-card-border);
    border-radius: 24px;
    background: var(--auth-card-bg);
    box-shadow: var(--auth-shadow);
}

.auth-copy {
    padding: 2rem;
}

.auth-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.auth-copy h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.auth-subcopy {
    margin: 0;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-feature-list {
    margin: 1.4rem 0 0;
    padding-left: 1.2rem;
    color: var(--auth-muted);
    line-height: 1.7;
}

.auth-form {
    padding: 1.6rem;
}

.auth-form-header {
    margin-bottom: 1rem;
}

.auth-form-header h2 {
    margin: 0 0 0.3rem;
    font-size: 1.45rem;
}

.auth-form-header p {
    margin: 0;
    color: var(--auth-muted);
}

.auth-grid {
    display: grid;
    gap: 1rem;
}

.auth-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-page-signup .auth-grid {
    gap: 0.75rem;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.auth-page-signup .auth-field {
    gap: 0.35rem;
    margin-bottom: 0.72rem;
}

.auth-page-signup .auth-field-floating {
    position: relative;
    gap: 0;
}

.auth-page-signup .auth-field-floating .auth-label {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    z-index: 2;
    padding: 0 0.25rem;
    background: transparent;
    color: var(--auth-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top 0.18s ease, transform 0.18s ease, color 0.18s ease, font-size 0.18s ease, background-color 0.18s ease;
}

.auth-page-signup .auth-field-floating.is-focused .auth-label,
.auth-page-signup .auth-field-floating.is-filled .auth-label {
    top: 0.42rem;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.96);
    color: var(--auth-accent);
    font-size: 0.72rem;
}

.auth-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--auth-input-border);
    border-radius: 14px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-page-signup .auth-input {
    min-height: 44px;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
}

.auth-page-signup .auth-field-floating .auth-input {
    padding-top: 1.1rem;
    padding-bottom: 0.28rem;
}

.auth-page-signup .auth-field-floating .auth-input::placeholder {
    color: transparent;
}

.auth-page-signup .auth-field-floating select.auth-input {
    padding-right: 2.6rem;
}

.auth-input-wrap .auth-input {
    padding-right: 3.25rem;
}

.auth-page-signup .auth-input-wrap .auth-input {
    padding-right: 3rem;
}

.auth-page-signup .auth-field-floating .auth-input-wrap .auth-input {
    padding-top: 1.1rem;
    padding-bottom: 0.28rem;
}

.auth-input:focus {
    outline: none;
    border-color: #86efac;
    box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.08);
}

.auth-icon-btn {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-page-signup .auth-icon-btn {
    width: 36px;
    height: 36px;
}

.auth-icon-btn:hover,
.auth-icon-btn:focus-visible {
    outline: none;
    background: #f8fafc;
    color: var(--auth-accent);
}

.auth-submit-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 0.4rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: linear-gradient(135deg, #14532d, #0f766e);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-page-signup .auth-submit-btn {
    min-height: 44px;
    margin-top: 0;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -22px rgba(20, 83, 45, 0.7);
}

.auth-submit-btn:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.auth-loading {
    display: none;
    margin-top: 0.9rem;
    color: var(--auth-muted);
    text-align: center;
}

.auth-message {
    display: none;
    margin-bottom: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    font-size: 0.94rem;
}

.auth-page-signup .auth-message {
    margin-bottom: 0.7rem;
    padding: 0.72rem 0.85rem;
}

.auth-message-error {
    background: var(--auth-danger-bg);
    border: 1px solid #fecaca;
    color: var(--auth-danger);
}

.auth-message-success {
    background: var(--auth-success-bg);
    border: 1px solid #bbf7d0;
    color: var(--auth-success);
}

.auth-links {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.1rem;
    color: var(--auth-muted);
    text-align: center;
}

.auth-page-signup .auth-links {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.85rem;
    margin-top: 0.8rem;
    align-items: start;
    text-align: left;
    font-size: 0.92rem;
}

.auth-links a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-page-signup .auth-links > a:last-child {
    justify-self: end;
}

.auth-links a:hover,
.auth-links a:focus-visible {
    text-decoration: underline;
}

.auth-checkbox-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--auth-muted);
}

.auth-page-signup .auth-checkbox-row {
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}

.auth-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
}

.auth-checkbox-row a {
    color: var(--auth-accent);
}

.auth-password-feedback {
    margin: -0.2rem 0 0.8rem;
}

.auth-page-signup .auth-password-feedback {
    margin-top: -0.1rem;
    margin-bottom: 0.72rem;
}

.auth-password-hint {
    display: block;
    color: var(--auth-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.auth-page-signup .auth-password-hint {
    font-size: 0.79rem;
}

.auth-password-strength {
    margin-top: 0.4rem;
}

.auth-strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.auth-strength-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.auth-strength-text {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.auth-page-signup .auth-strength-text {
    font-size: 0.78rem;
}

.g-recaptcha {
    margin-bottom: 1rem;
}

.auth-page-signup .g-recaptcha {
    margin-bottom: 0.75rem;
}

.auth-inline-note {
    margin: -0.15rem 0 0.65rem;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-search-toolbar {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.auth-page-signup .auth-inline-note {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-field-group-label {
    margin: 0 0 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.auth-inline-actions {
    margin-bottom: 1rem;
}

.auth-page-signup .auth-inline-actions {
    margin-bottom: 0.75rem;
}

.auth-mode-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid var(--auth-input-border);
    border-radius: 16px;
    background: #f8fafc;
}

.auth-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 0.85rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-muted);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-page-signup .auth-mode-btn {
    min-height: 38px;
    padding: 0.55rem 0.75rem;
}

.auth-mode-btn:hover,
.auth-mode-btn:focus-visible {
    outline: none;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
}

.auth-mode-btn.is-active {
    background: #fff;
    color: var(--auth-accent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.auth-mode-btn.is-active:hover,
.auth-mode-btn.is-active:focus-visible {
    transform: translateY(-1px);
}

.auth-page-signup #institutionSearch:disabled {
    cursor: not-allowed;
    color: #94a3b8;
    background: #f8fafc;
}

.auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.auth-page-signup .auth-choice-grid {
    gap: 0.7rem;
}

.auth-choice-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.95rem;
    border: 1px solid var(--auth-input-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.auth-page-signup .auth-choice-card {
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
}

.auth-choice-card input {
    margin-top: 0.25rem;
}

.auth-page-signup .auth-choice-card input {
    margin-top: 0.15rem;
}

.auth-choice-copy {
    display: grid;
    gap: 0.2rem;
}

.auth-page-signup .auth-choice-copy strong {
    font-size: 0.95rem;
}

.auth-choice-copy small {
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-page-signup .auth-choice-copy small {
    font-size: 0.79rem;
    line-height: 1.35;
}

.auth-helper-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #c7f9cc;
    border-radius: 16px;
    background: #f0fdf4;
    color: var(--auth-success);
}

.auth-page-signup .auth-helper-card {
    margin-bottom: 0.75rem;
    padding: 0.8rem 0.9rem;
}

.auth-helper-card p {
    margin: 0.35rem 0 0;
}

.auth-page-signup .auth-helper-card p {
    margin-top: 0.2rem;
    font-size: 0.87rem;
}

.auth-search-results {
    display: none;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.auth-page-signup .auth-search-results {
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.auth-search-result {
    display: grid;
    gap: 0.15rem;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--auth-input-border);
    border-radius: 14px;
    background: #fff;
    color: var(--auth-ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.auth-page-signup .auth-search-result {
    padding: 0.7rem 0.8rem;
}

.auth-search-result span {
    color: var(--auth-muted);
    font-size: 0.86rem;
}

.auth-page-signup .auth-search-result span {
    font-size: 0.81rem;
}

.auth-search-result:hover,
.auth-search-result:focus-visible {
    outline: none;
    border-color: #86efac;
    background: #f8fff9;
}

.auth-step-list {
    margin: 1.25rem 0 0;
    padding-left: 1.2rem;
    color: var(--auth-muted);
    line-height: 1.8;
}

.auth-step-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.auth-step-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--auth-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-step-pill-active {
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
}

.auth-step-panel[hidden] {
    display: none;
}

.auth-feature-list-compact {
    margin-top: 0;
}

/* Approval-pending page: alerts, upload form, divider */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.auth-alert .material-icons {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.auth-alert-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #14532d;
}
.auth-alert-success .material-icons { color: #16a34a; }
.auth-alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #78350f;
}
.auth-alert-warning .material-icons { color: #d97706; }

.auth-upload-form { margin-top: 0.5rem; }

.auth-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--auth-ink, #0f172a);
    margin-bottom: 0.5rem;
}
.auth-field-hint {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--auth-muted, #64748b);
}
.auth-file-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--auth-border, #dbe4ee);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
    cursor: pointer;
}
.auth-file-input:focus-visible {
    outline: 2px solid var(--auth-accent, #0f766e);
    outline-offset: 2px;
}

.auth-upload-status {
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}
.auth-upload-status-success {
    background: #f0fdf4;
    color: #14532d;
    border: 1px solid #86efac;
}
.auth-upload-status-error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--auth-border, #dbe4ee);
    margin: 1.5rem 0 1.25rem;
}

@media (max-width: 1100px) {
    .auth-page-signup .auth-shell {
        max-width: 1040px;
        padding-inline: 1rem;
    }

    .auth-page-signup .auth-hero-card-wide {
        grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.28fr);
        gap: 0.95rem;
    }

    .auth-page-signup .auth-copy,
    .auth-page-signup .auth-form {
        padding: 1.2rem;
    }

    .auth-page-signup .auth-copy h1 {
        max-inline-size: 13ch;
    }
}

@media (min-width: 861px) and (max-height: 760px) {
    .auth-page-login .auth-shell {
        min-height: auto;
        display: block;
        align-items: flex-start;
        padding-top: 0.35rem;
        padding-bottom: 0.4rem;
    }

    .auth-page-login .auth-hero-card {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
        gap: 0.85rem;
        align-items: start;
    }

    .auth-page-login .auth-copy,
    .auth-page-login .auth-form {
        padding: 1rem 1.05rem;
        border-radius: 20px;
    }

    .auth-page-login .auth-copy h1 {
        font-size: clamp(1.45rem, 2.35vw, 2.05rem);
        margin-bottom: 0.4rem;
    }

    .auth-page-login .auth-subcopy {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .auth-page-login .auth-feature-list {
        margin-top: 0.45rem;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .auth-page-login .auth-form-header {
        margin-bottom: 0.6rem;
    }

    .auth-page-login .auth-form-header h2 {
        font-size: 1.2rem;
    }

    .auth-page-login .auth-form-header p,
    .auth-page-login .auth-label {
        font-size: 0.88rem;
    }

    .auth-page-login .auth-field {
        gap: 0.35rem;
        margin-bottom: 0.72rem;
    }

    .auth-page-login .auth-input,
    .auth-page-login .auth-submit-btn {
        min-height: 42px;
        padding-top: 0.72rem;
        padding-bottom: 0.72rem;
        border-radius: 12px;
    }

    .auth-page-login .auth-message {
        margin-bottom: 0.6rem;
        padding: 0.65rem 0.75rem;
    }

    .auth-page-login .auth-links {
        margin-top: 0.7rem;
        gap: 0.35rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 860px) {
    .auth-page-login .auth-shell {
        min-height: auto;
        padding-top: 0.65rem;
        padding-bottom: 1rem;
    }

    .auth-page-login .auth-hero-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page-login .auth-form {
        order: 1;
        width: 100%;
    }

    .auth-page-login .auth-copy {
        order: 2;
        width: 100%;
    }

    .auth-page-signup .auth-shell {
        min-height: auto;
        max-width: 1180px;
        padding-top: 0.65rem;
        padding-bottom: 1rem;
    }

    .auth-hero-card,
    .auth-hero-card-wide {
        grid-template-columns: 1fr;
    }

    .auth-copy,
    .auth-form {
        padding: 1.35rem;
    }

    .auth-page-signup .auth-copy {
        display: grid;
        gap: 0.55rem;
    }

    .auth-page-signup .auth-feature-list {
        margin-top: 0.6rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem 0.9rem;
        padding-left: 1.1rem;
    }

    .auth-page-signup .auth-grid-two,
    .auth-page-signup .auth-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-page-signup .auth-search-toolbar,
    .auth-page-signup .auth-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-mode-switch {
        width: 100%;
    }

    .auth-page-signup .auth-links > a:last-child {
        justify-self: start;
    }

}

@media (max-width: 680px) {
    .auth-page-signup .auth-shell {
        padding-inline: 0.8rem;
        padding-top: 0.5rem;
        padding-bottom: 0.9rem;
    }

    .auth-page-signup .auth-hero-card-wide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-page-signup .auth-form {
        order: 1;
    }

    .auth-page-signup .auth-copy {
        order: 2;
        width: 100%;
    }

    .auth-page-signup .auth-copy,
    .auth-page-signup .auth-form {
        padding: 1rem;
        border-radius: 20px;
    }

    .auth-page-signup .auth-copy {
        gap: 0.4rem;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 16px 30px -26px rgba(15, 23, 42, 0.4);
    }

    .auth-page-signup .auth-eyebrow {
        margin-bottom: 0.3rem;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .auth-page-signup .auth-copy h1 {
        margin-bottom: 0.35rem;
        max-inline-size: none;
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.1;
        text-wrap: pretty;
    }

    .auth-page-signup .auth-subcopy {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .auth-page-signup .auth-feature-list,
    .auth-page-signup .auth-grid-two,
    .auth-page-signup .auth-choice-grid {
        grid-template-columns: 1fr;
    }

    .auth-page-signup .auth-feature-list {
        margin-top: 0.6rem;
        padding-left: 0;
        list-style: none;
        gap: 0.45rem;
    }

    .auth-page-signup .auth-feature-list li {
        position: relative;
        padding: 0.65rem 0.75rem 0.65rem 2rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.92);
        line-height: 1.4;
    }

    .auth-page-signup .auth-feature-list li::before {
        content: "+";
        position: absolute;
        left: 0.8rem;
        top: 0.62rem;
        color: var(--auth-accent);
        font-weight: 700;
    }

    .auth-page-signup .auth-form-header h2 {
        font-size: 1.2rem;
    }

    .auth-page-signup .auth-form-header p,
    .auth-page-signup .auth-links,
    .auth-page-signup .auth-checkbox-row {
        font-size: 0.88rem;
    }

    .auth-page-signup .auth-choice-card,
    .auth-page-signup .auth-helper-card,
    .auth-page-signup .auth-search-result,
    .auth-page-signup .auth-message {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .auth-mode-switch {
        grid-template-columns: 1fr;
    }

    .auth-page-signup .auth-mode-btn {
        min-height: 42px;
    }

    .auth-page-signup .auth-links {
        gap: 0.45rem;
        margin-top: 0.7rem;
    }

    .auth-page-signup .auth-field-group-label {
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 420px) {
    .auth-page-signup .auth-shell {
        padding-inline: 0.65rem;
    }

    .auth-page-signup .auth-copy,
    .auth-page-signup .auth-form {
        padding: 0.9rem;
    }

    .auth-page-signup .auth-copy h1 {
        font-size: clamp(1.22rem, 6.2vw, 1.55rem);
    }

    .auth-page-signup .auth-subcopy {
        font-size: 0.84rem;
    }

    .auth-page-signup .auth-feature-list li {
        padding: 0.58rem 0.68rem 0.58rem 1.8rem;
        border-radius: 12px;
        font-size: 0.84rem;
    }

    .auth-page-signup .auth-feature-list li::before {
        left: 0.72rem;
        top: 0.56rem;
    }

    .auth-page-signup .auth-input,
    .auth-page-signup .auth-submit-btn {
        min-height: 42px;
    }

    .auth-page-signup .auth-field-floating .auth-label {
        left: 0.8rem;
        font-size: 0.9rem;
    }

    .auth-page-signup .auth-field-floating.is-focused .auth-label,
    .auth-page-signup .auth-field-floating.is-filled .auth-label {
        font-size: 0.68rem;
    }
}
