:root {
    --auth-bg: #eef4ff;
    --auth-surface: rgba(255, 255, 255, 0.78);
    --auth-surface-strong: rgba(255, 255, 255, 0.92);
    --auth-border: rgba(52, 79, 161, 0.12);
    --auth-border-strong: rgba(79, 70, 229, 0.18);
    --auth-text: #0f172a;
    --auth-text-soft: #475569;
    --auth-text-muted: #64748b;
    --auth-primary: #4f46e5;
    --auth-primary-strong: #312e81;
    --auth-secondary: #0891b2;
    --auth-success: #059669;
    --auth-warning: #d97706;
    --auth-danger: #dc2626;
    --auth-shadow: 0 30px 70px rgba(23, 37, 84, 0.12);
    --auth-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --auth-gradient: linear-gradient(135deg, #4f46e5 0%, #0f9bd7 100%);
    --auth-gradient-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(8, 145, 178, 0.08) 100%);
    --auth-radius-xl: 32px;
    --auth-radius-lg: 24px;
    --auth-radius-md: 18px;
    --auth-radius-sm: 14px;
    --auth-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 28px;
    font-family: 'Outfit', sans-serif;
    color: var(--auth-text);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 28%), var(--auth-bg);
    overflow-x: hidden;
}

.auth-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    opacity: 0.35;
}

.auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.7;
}

.auth-orb--indigo {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: rgba(79, 70, 229, 0.16);
}

.auth-orb--cyan {
    width: 380px;
    height: 380px;
    right: -100px;
    top: 15%;
    background: rgba(8, 145, 178, 0.15);
}

.auth-orb--amber {
    width: 320px;
    height: 320px;
    left: 25%;
    bottom: -120px;
    background: rgba(245, 158, 11, 0.08);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 500px);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.signup-page .auth-shell {
    align-items: flex-start;
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    width: fit-content;
}

.auth-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--auth-shadow-soft);
}

.auth-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-brand-copy strong {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.auth-brand-copy span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-text-muted);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--auth-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.auth-title .accent {
    display: inline-block;
    background: var(--auth-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-copy {
    max-width: 58ch;
    margin: 0;
    color: var(--auth-text-soft);
    font-size: 1.03rem;
    line-height: 1.75;
}

.showcase-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.92);
    color: var(--auth-text);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.showcase-pill i {
    color: var(--auth-primary);
}

.showcase-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.showcase-metric {
    padding: 18px;
    border-radius: 20px;
    background: var(--auth-surface);
    border: 1px solid rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--auth-shadow-soft);
}

.showcase-metric strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.showcase-metric span {
    display: block;
    color: var(--auth-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.showcase-panel {
    padding: 22px;
    border-radius: 26px;
    background: var(--auth-surface);
    border: 1px solid rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--auth-shadow-soft);
}

.login-preview-panel {
    display: grid;
    gap: 16px;
}

.login-preview-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.76));
}

.login-preview-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 22px rgba(79, 70, 229, 0.12);
}

.login-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-preview-copy {
    min-width: 0;
}

.login-preview-copy strong,
.login-progress-copy strong {
    display: block;
    color: var(--auth-text);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.login-preview-copy span,
.login-progress-copy span {
    display: block;
    margin-top: 4px;
    color: var(--auth-text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.login-preview-grid,
.login-assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.login-preview-grid div,
.login-assurance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--auth-border);
    background: rgba(255, 255, 255, 0.74);
    color: var(--auth-text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-preview-grid i,
.login-assurance-item i {
    color: var(--auth-primary);
    flex-shrink: 0;
}

.login-preview-grid span,
.login-assurance-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.login-progress-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.8fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.login-progress-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.26);
}

.login-progress-track span {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #059669, #22c55e);
}

.showcase-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.showcase-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.showcase-panel-head span {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--auth-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase-list,
.journey-list {
    display: grid;
    gap: 12px;
}

.showcase-list-item,
.journey-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.showcase-list-item__icon,
.journey-step__index {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-gradient-soft);
    color: var(--auth-primary);
    font-size: 0.95rem;
    font-weight: 800;
}

.journey-step__index {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.showcase-list-item strong,
.journey-step strong {
    display: block;
    font-size: 0.97rem;
    margin-bottom: 4px;
}

.showcase-list-item p,
.journey-step p {
    margin: 0;
    color: var(--auth-text-muted);
    line-height: 1.6;
    font-size: 0.88rem;
}

.auth-panel {
    min-width: 0;
}

.auth-card {
    position: relative;
    padding: 28px;
    border-radius: var(--auth-radius-xl);
    background: var(--auth-surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--auth-gradient);
}

.auth-stage {
    display: block;
}

.auth-stage.is-hidden {
    display: none;
}

.auth-card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-card-header--compact {
    margin-top: 18px;
}

.login-page .auth-card-header--compact {
    margin-top: 16px;
    margin-bottom: 18px;
}

.auth-card-header h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.auth-card-header p {
    margin: 0;
    color: var(--auth-text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.role-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    width: 100%;
    border: 1px solid var(--auth-border);
    background: rgba(248, 250, 252, 0.88);
    border-radius: 22px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: var(--auth-transition);
    color: inherit;
}

.role-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px rgba(30, 41, 59, 0.08);
    border-color: var(--auth-border-strong);
    background: #ffffff;
}

.role-option.is-active {
    border-color: rgba(79, 70, 229, 0.28);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(8, 145, 178, 0.04));
    box-shadow: 0 20px 36px rgba(79, 70, 229, 0.12);
}

.role-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    color: var(--auth-primary);
    font-size: 1rem;
}

.role-option-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.role-option-copy strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.role-option-copy small {
    color: var(--auth-text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.role-option-tag {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(79, 70, 229, 0.14);
    color: var(--auth-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.role-summary {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--auth-border);
    background: rgba(244, 247, 251, 0.88);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    transition: var(--auth-transition);
    color: inherit;
}

.role-summary:hover {
    border-color: var(--auth-border-strong);
    background: #ffffff;
}

.role-summary--static {
    cursor: default !important;
    pointer-events: none !important;
}

.role-summary-label {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.role-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    color: var(--auth-primary);
}

.role-summary-label strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 2px;
}

.role-summary-label small,
.role-summary-change {
    color: var(--auth-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.login-assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.login-assurance-item {
    background: rgba(248, 250, 252, 0.88);
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.input-group {
    min-width: 0;
}

.input-label,
.field-support-row label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--auth-text);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.field-support-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.field-support-row label {
    margin-bottom: 0;
}

.input-wrap {
    position: relative;
}

.input-icon-left,
.select-chevron,
.input-icon-right,
.validation-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.input-icon-left {
    left: 16px;
    color: var(--auth-text-muted);
    font-size: 0.92rem;
    pointer-events: none;
}

.select-chevron,
.input-icon-right,
.validation-icon {
    right: 16px;
    color: var(--auth-text-muted);
}

.input-icon-right {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.92rem;
    padding: 0;
}

.validation-icon {
    color: var(--auth-success);
    font-size: 0.92rem;
    pointer-events: none;
}

.input-field {
    width: 100%;
    min-height: 52px;
    padding: 0 46px 0 46px;
    border-radius: 16px;
    border: 1px solid var(--auth-border);
    background: rgba(248, 250, 252, 0.92);
    color: var(--auth-text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: var(--auth-transition);
}

.input-field::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.input-field:focus {
    border-color: rgba(79, 70, 229, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.09);
}

.input-field.is-invalid {
    border-color: rgba(220, 38, 38, 0.44);
    background: rgba(254, 242, 242, 0.98);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

select.input-field {
    cursor: pointer;
    appearance: none;
    color: var(--auth-text);
}

.field-note {
    margin: 8px 2px 0;
    color: var(--auth-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

.caps-warning {
    margin: 8px 2px 0;
    color: var(--auth-warning);
    font-size: 0.78rem;
    font-weight: 700;
}

.remember-row,
.terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.remember-check,
.terms-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.remember-check input,
.terms-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
}

.terms-check a {
    color: var(--auth-primary);
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

.terms-check.is-invalid {
    color: var(--auth-danger);
}

.terms-check.is-invalid a {
    color: var(--auth-danger);
}

.auth-link-button,
.auth-link-inline {
    color: var(--auth-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    padding: 0;
}

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

.status-message {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 18px;
}

.status-message.hidden {
    display: none !important;
}

.status-message--error {
    color: #991b1b;
    background: rgba(254, 242, 242, 0.96);
    border-color: rgba(220, 38, 38, 0.16);
}

.status-message--success {
    color: #065f46;
    background: rgba(236, 253, 245, 0.96);
    border-color: rgba(5, 150, 105, 0.16);
}

.status-message--info {
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.16);
}

.auth-primary-btn,
.auth-social-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: inherit;
    font-size: 0.97rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--auth-transition);
    text-decoration: none;
}

.auth-primary-btn {
    color: #ffffff;
    background: var(--auth-gradient);
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.24);
}

.auth-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(79, 70, 229, 0.28);
}

.auth-primary-btn:active,
.auth-social-btn:active {
    transform: translateY(0);
}

.auth-primary-btn:disabled,
.auth-social-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.auth-social-btn {
    background: #ffffff;
    color: var(--auth-text);
    border-color: var(--auth-border);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.auth-social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--auth-border-strong);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.auth-social-btn__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-separator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.auth-separator::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.16), transparent);
}

.auth-separator span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: var(--auth-surface-strong);
    color: var(--auth-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-links,
.auth-footer-text {
    margin-top: 18px;
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.6;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-links a,
.auth-footer-text a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 800;
}

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

.strength-bars {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.s-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: var(--auth-transition);
}

.strength-text {
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-text-muted);
}

.hidden {
    display: none !important;
}

.shake {
    animation: auth-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes auth-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.auth-primary-btn:focus-visible,
.auth-social-btn:focus-visible,
.role-option:focus-visible,
.role-summary:focus-visible,
.auth-link-button:focus-visible,
.auth-link-inline:focus-visible,
.input-icon-right:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.22);
    outline-offset: 2px;
}

@media (max-width: 1040px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.auth-page {
        padding: 18px 14px 24px;
    }

    .auth-shell {
        gap: 22px;
    }

    .auth-card,
    .showcase-panel {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .auth-copy {
        font-size: 0.97rem;
    }

    .showcase-metric-grid,
    .login-preview-grid,
    .login-assurance-grid,
    .login-progress-preview,
    .form-grid--two {
        grid-template-columns: 1fr;
    }

    .role-option {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .role-option-tag {
        grid-column: 2;
        justify-self: start;
    }

    .showcase-panel-head,
    .remember-row,
    .terms-row,
    .field-support-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .auth-title {
        font-size: 2.15rem;
    }

    .auth-card-header h2 {
        font-size: 1.45rem;
    }

    .showcase-pill,
    .showcase-metric,
    .role-summary,
    .role-option {
        border-radius: 18px;
    }

    .showcase-metric-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand-copy strong {
        font-size: 1rem;
    }

    .showcase-list-item,
    .journey-step {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .showcase-list-item__icon,
    .journey-step__index {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Login page: single clean student sign-in card */
body.login-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        #edf4ff;
    background-size: 38px 38px, 38px 38px, auto;
}

.login-page .auth-background,
.login-page .auth-showcase,
.login-page #step-role {
    display: none !important;
}

.login-page .auth-shell {
    width: min(500px, 100%);
    display: block;
    margin: 0;
}

.login-page .auth-panel {
    width: 100%;
}

.login-page .auth-card {
    width: 100%;
    padding: 28px 30px 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 70px rgba(54, 73, 112, 0.13);
}

.login-page .auth-card::before {
    height: 3px;
    inset: 0 18px auto;
    border-radius: 999px;
}

.login-page .role-summary {
    padding: 15px 16px;
    border-radius: 17px;
    background: rgba(248, 251, 255, 0.9);
    border-color: rgba(122, 145, 180, 0.22);
}

.login-page .role-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
}

.login-page .role-summary-label strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.login-page .role-summary-label small {
    font-size: 0.78rem;
    color: #54627a;
}

.login-page .auth-card-header--compact {
    margin-top: 24px;
    margin-bottom: 20px;
    gap: 12px;
}

.login-page .section-kicker {
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f46e5;
    border-radius: 0;
    letter-spacing: 0.18em;
}

.login-page .auth-card-header h2 {
    font-size: 1.62rem;
    line-height: 1.1;
    font-weight: 900;
}

.login-page .auth-card-header p {
    font-size: 0.93rem;
    line-height: 1.55;
}

.login-page .login-assurance-grid {
    gap: 10px;
    margin-bottom: 20px;
}

.login-page .login-assurance-item {
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.9);
    font-size: 0.78rem;
}

.login-page .auth-form {
    gap: 17px;
}

.login-page .input-label,
.login-page .field-support-row label {
    margin-bottom: 9px;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 800;
}

.login-page .auth-link-button {
    font-size: 0.78rem;
}

.login-page .input-field {
    min-height: 52px;
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.95);
    border-color: rgba(122, 145, 180, 0.22);
}

.login-page .input-field:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.13);
}

.login-page .remember-check {
    color: #334155;
    font-size: 0.84rem;
}

.login-page .auth-primary-btn {
    min-height: 52px;
    border-radius: 17px;
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.22);
}

.login-page .auth-separator {
    margin: 19px 0;
}

.login-page .auth-separator span {
    background: rgba(255, 255, 255, 0.94);
}

.login-page .auth-social-btn {
    min-height: 53px;
    border-radius: 16px;
}

.login-page .auth-links {
    margin-top: 18px;
}

@media (max-width: 560px) {
    body.login-page {
        padding: 16px;
        align-items: flex-start;
    }

    .login-page .auth-card {
        padding: 24px 18px;
        border-radius: 26px;
    }

    .login-page .login-assurance-grid {
        grid-template-columns: 1fr 1fr;
    }

    .login-page .auth-card-header h2 {
        font-size: 1.48rem;
    }
}

/* Signup page: single clean create-account card */
body.signup-page {
    min-height: 100vh;
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        #edf4ff;
    background-size: 38px 38px, 38px 38px, auto;
}

.signup-page .auth-background,
.signup-page .auth-showcase {
    display: none !important;
}

.signup-page .auth-shell {
    width: min(500px, 100%);
    display: block;
    margin: 0 auto;
}

.signup-page .auth-panel {
    width: 100%;
}

.signup-page .auth-card {
    width: 100%;
    padding: 34px 28px 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 70px rgba(54, 73, 112, 0.13);
}

.signup-page .auth-card::before {
    height: 3px;
    inset: 0 18px auto;
    border-radius: 999px;
}

.signup-page .auth-card-header {
    gap: 14px;
    margin-bottom: 28px;
}

.signup-page .section-kicker {
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f46e5;
    border-radius: 0;
    letter-spacing: 0.18em;
}

.signup-page .auth-card-header h2 {
    font-size: 1.58rem;
    line-height: 1.18;
    font-weight: 900;
}

.signup-page .auth-card-header p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.signup-page .auth-form {
    gap: 20px;
}

.signup-page .form-grid {
    gap: 14px 16px;
}

.signup-page .input-label,
.signup-page .terms-check {
    color: #111827;
    font-size: 0.78rem;
    font-weight: 800;
}

.signup-page .input-label {
    margin-bottom: 9px;
}

.signup-page .input-field {
    min-height: 52px;
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.95);
    border-color: rgba(122, 145, 180, 0.22);
}

.signup-page .input-field:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.13);
}

.signup-page .field-note {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.55;
}

.signup-page .strength-meter {
    margin-top: 10px;
}

.signup-page .strength-text {
    margin-top: 7px;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.signup-page .auth-primary-btn {
    min-height: 52px;
    border-radius: 17px;
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.22);
}

.signup-page .auth-separator {
    margin: 0;
}

.signup-page .auth-separator span {
    background: rgba(255, 255, 255, 0.95);
}

.signup-page .auth-social-btn {
    min-height: 53px;
    border-radius: 16px;
}

.signup-page .auth-links {
    margin-top: 18px;
}

@media (max-width: 560px) {
    body.signup-page {
        padding: 14px 12px;
    }

    .signup-page .auth-card {
        padding: 28px 18px 24px;
        border-radius: 26px;
    }

    .signup-page .form-grid--two {
        grid-template-columns: 1fr;
    }

    .signup-page .auth-card-header h2 {
        font-size: 1.42rem;
    }
}
