/* Auth shell — Sorority Pass premium system brand */

/* ---- Typography & rhythm ---- */
.theme-auth,
.theme-auth body {
    font-family: var(--auth-font-body, 'Inter', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

.theme-auth h1,
.theme-auth h2,
.theme-auth h3,
.theme-auth .auth-form-panel__title,
.theme-auth .auth-brand-panel__name {
    font-family: var(--auth-font-heading, 'Fraunces', Georgia, serif);
    font-optical-sizing: auto;
}

/* ---- Page canvas ---- */
.auth-main {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(247, 98, 163, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(224, 74, 143, 0.08) 0%, transparent 45%),
        var(--system-page-background, #FAFAFA);
}

.auth-main:has(.auth-shell--register) {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* ---- Form side ---- */
.auth-shell__form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    background:
        radial-gradient(ellipse 90% 70% at 80% 20%, rgba(247, 98, 163, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, #FFF0F8 100%);
}

.auth-shell__form::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.auth-shell--wide .auth-form-panel {
    max-width: 680px;
}

.auth-shell--wide .auth-form-panel__card {
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

/* Register — fit viewport without scrolling on desktop */
.auth-shell--register {
    min-height: 100vh;
}

@media (min-width: 901px) {
    .auth-shell--register {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .auth-shell--register .auth-brand-panel--full {
        flex: 0 0 40%;
        max-width: 500px;
        padding: clamp(2rem, 3.5vw, 3rem);
    }

    .auth-shell--register .auth-brand-panel--register .auth-brand-panel__logo {
        margin-bottom: 1.5rem;
    }

    .auth-shell--register .auth-shell__form {
        padding: 1.25rem 2rem;
        align-items: center;
        overflow: hidden;
    }

    .auth-shell--register .auth-form-panel {
        max-width: 760px;
    }

    .auth-shell--register .auth-form-panel__card {
        padding: 1.5rem 1.75rem 1.35rem;
    }
}

.auth-brand-panel--register .auth-brand-panel__register-lead {
    font-family: var(--auth-font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #6B6B6B;
    margin: 0 0 1.5rem;
    max-width: 36ch;
}

.auth-brand-panel--register .auth-brand-panel__trust {
    margin-top: 0;
}

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

.auth-form-section {
    padding-bottom: 0.875rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid color-mix(in srgb, var(--system-border) 80%, transparent);
}

.auth-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
}

.auth-form-section__title {
    margin: 0 0 0.625rem;
    font-family: var(--auth-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--system-text-muted);
}

.auth-form-section__fields .auth-form-grid {
    gap: 1rem 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

.auth-field__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.125rem;
    margin-bottom: 0.5rem;
    font-family: var(--auth-font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--system-text);
    cursor: default;
}

.auth-field__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9375rem;
    height: 0.9375rem;
    font-size: 0.625rem;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    text-transform: lowercase;
    color: var(--system-text-muted);
    background: var(--system-soft-background);
    border: 1px solid var(--system-border);
    border-radius: 50%;
    cursor: help;
}

.auth-field__control {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-field .invalid-feedback {
    margin-top: 0.3rem;
}

.auth-field--inline {
    margin: 0.25rem 0 0.5rem;
}

.auth-field--inline .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.auth-field--inline .form-check-label {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--system-text-muted);
    margin: 0;
}

.auth-shell--register .auth-form-section {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-shell--register .auth-form-section__title {
    margin-bottom: 0.625rem;
}

.auth-shell--register .auth-form-section__fields .auth-form-grid {
    gap: 0.875rem 1.125rem;
}

.auth-form-grid {
    display: grid;
    gap: 1rem 1.25rem;
    align-items: start;
}

.auth-form-grid > .auth-field,
.auth-form-grid > .form-group {
    margin: 0;
}

@media (min-width: 640px) {
    .auth-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-form-grid__full {
        grid-column: 1 / -1;
    }

    /* Keep paired row labels + inputs aligned */
    .auth-form-grid > .auth-field {
        display: grid;
        grid-template-rows: auto 1fr;
        align-content: start;
    }
}

.auth-form-grid__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--system-border);
}

.auth-form-grid__login-link {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--system-text-muted);
}

.auth-form-grid__login-link a {
    color: var(--system-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-form-grid__login-link a:hover {
    color: var(--system-accent-hover);
    text-decoration: underline;
}

.auth-btn-submit {
    min-width: 9.5rem;
}

.auth-form-panel--compact .auth-form-panel__header {
    margin-bottom: 1.25rem;
}

.auth-form-panel--compact .auth-form-panel__accent {
    width: 36px;
    height: 3px;
    margin-bottom: 0.75rem;
}

.auth-form-panel--compact .auth-form-panel__title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    margin-bottom: 0.25rem;
}

.auth-form-panel--compact .auth-form-panel__subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
    color: var(--system-text-muted);
    margin: 0;
}

.auth-form-panel--compact .auth-form-panel__body {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .auth-form-grid__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .auth-form-grid__actions .btn-primary {
        width: 100%;
    }
}

.auth-shell--error .auth-brand-panel--full {
    background:
        radial-gradient(ellipse 70% 55% at 15% 85%, rgba(247, 98, 163, 0.18) 0%, transparent 50%),
        linear-gradient(155deg, #FFF0F8 0%, #FAFAFA 48%, #F5E6EF 100%);
}

/* ---- Brand panel ---- */
.auth-brand-panel--full {
    position: relative;
    flex: 0 0 44%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    color: #111111;
    background:
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(224, 74, 143, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 0%, rgba(247, 98, 163, 0.1) 0%, transparent 50%),
        linear-gradient(155deg, #FFF0F8 0%, #FAFAFA 42%, #F8E8F1 100%);
    overflow: hidden;
    border-right: 1px solid rgba(17, 17, 17, 0.08);
}

.auth-brand-panel__ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-brand-panel__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: authOrbFloat 18s ease-in-out infinite;
}

.auth-brand-panel__orb--1 {
    width: 280px;
    height: 280px;
    top: -8%;
    right: -12%;
    background: rgba(224, 74, 143, 0.22);
    animation-delay: 0s;
}

.auth-brand-panel__orb--2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -8%;
    background: rgba(247, 98, 163, 0.18);
    animation-delay: -6s;
}

.auth-brand-panel__orb--3 {
    width: 140px;
    height: 140px;
    top: 45%;
    right: 20%;
    background: rgba(17, 17, 17, 0.04);
    animation-delay: -12s;
}

.auth-brand-panel__noise {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: multiply;
}

.auth-brand-panel__pattern {
    position: absolute;
    inset: 0;
    color: #E04A8F;
    opacity: 0.12;
    pointer-events: none;
}

.auth-brand-panel__pattern .auth-brand-pattern__svg {
    position: absolute;
    width: min(95%, 460px);
    height: auto;
    right: -12%;
    bottom: -8%;
    animation: authPatternDrift 24s ease-in-out infinite;
}

.auth-brand-panel__inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-brand-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111111;
    background: rgba(17, 17, 17, 0.05);
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.auth-brand-panel__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--system-accent-hover, #E04A8F);
    box-shadow: 0 0 10px var(--system-accent-glow, rgba(247, 98, 163, 0.35));
}

.auth-brand-panel__logo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.auth-brand-panel__logo-mark {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(145deg, #FFFFFF 0%, #FFF0F8 100%);
    border: 1px solid rgba(17, 17, 17, 0.1);
    box-shadow:
        0 8px 24px rgba(17, 17, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-brand-panel__logo-mark img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.auth-brand-panel__logo-mark--sm {
    width: 40px;
    height: 40px;
    padding: 3px;
    border-radius: 12px;
}

.auth-brand-panel__name {
    font-family: var(--theme-heading-font-family);
    font-size: clamp(1.625rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    color: #111111;
    line-height: 1.15;
}

.auth-brand-panel__tagline {
    font-family: var(--auth-font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #6B6B6B;
    margin: 0;
    line-height: 1.55;
}

/* Feature glass cards */
.auth-brand-panel__feature-cards {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #F0D6E4 0%, #E4C2D6 100%);
    border: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
    backdrop-filter: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-feature-card:hover {
    background: linear-gradient(180deg, #EBC9DA 0%, #DDB5CC 100%);
    border-color: rgba(224, 74, 143, 0.45);
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
    transform: translateX(4px);
}

.auth-feature-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    color: #FFFFFF;
    background: linear-gradient(145deg, #F762A3 0%, #E04A8F 100%);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 4px 12px rgba(224, 74, 143, 0.3);
}

.auth-feature-card__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-feature-card__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.auth-feature-card__copy strong {
    font-family: var(--auth-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111111;
}

.auth-feature-card__copy span {
    font-family: var(--auth-font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #3A3A3A;
    line-height: 1.5;
}

.auth-brand-panel__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-trust-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111111;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(17, 17, 17, 0.06);
}

.auth-brand-panel__illustration {
    margin-top: 1.5rem;
    max-width: 220px;
}

.auth-brand-panel__illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(17, 17, 17, 0.12));
}

/* Mobile compact brand */
.auth-brand-panel--compact {
    display: none;
}

/* ---- Form panel card ---- */
.auth-form-panel {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.auth-form-panel__card {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    border-radius: var(--system-radius-lg, 20px);
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF0F8 100%);
    border: 1px solid color-mix(in srgb, var(--system-border) 70%, #fff);
    box-shadow:
        var(--system-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    position: relative;
    overflow: hidden;
}

.auth-form-panel__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 98, 163, 0.5), transparent);
    pointer-events: none;
}

.auth-form-panel__header {
    margin-bottom: 1.5rem;
}

.auth-form-panel__accent {
    display: block;
    width: 40px;
    height: 3px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--system-accent, #F762A3) 0%, var(--system-primary, #111111) 100%);
}

.auth-form-panel__title {
    font-family: var(--auth-font-heading);
    font-size: clamp(1.625rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--system-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.auth-form-panel__subtitle {
    font-family: var(--auth-font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--system-text-muted);
    margin: 0;
    line-height: 1.55;
}

.auth-form-panel__body {
    margin-bottom: 1.25rem;
}

.auth-form-panel__footer {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--system-text-muted);
    padding-top: 1.5rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--system-border);
}

.auth-form-panel__footer a {
    color: var(--system-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-form-panel__footer a:hover {
    color: var(--system-accent-hover);
    text-decoration: underline;
}

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

/* Stacked single-column forms (login, forgot password, etc.) */
.auth-form--stacked {
    gap: 1.25rem;
}

.auth-form--stacked > .auth-field,
.auth-form--stacked > .form-group,
.auth-form--stacked > .auth-password-field {
    margin: 0;
}

.auth-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.auth-form__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.auth-form__actions--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.5rem;
}

.auth-form__actions--stack .btn-primary {
    width: 100%;
}

.auth-form .form-group,
.auth-form-panel .form-group,
.auth-field {
    margin-bottom: 0;
}

.auth-form label,
.auth-form-panel label {
    display: block;
    font-family: var(--auth-font-body);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    color: var(--system-text);
    margin-bottom: 0.4rem;
}

.auth-form .form-control,
.auth-form-panel .form-control,
.auth-field .form-control {
    font-family: var(--auth-font-body);
    border-radius: 11px;
    border: 1px solid color-mix(in srgb, var(--system-border) 90%, #94a3b8);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--system-text);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) inset;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-form .form-select,
.auth-field .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

.auth-shell--register .auth-form--register .form-control,
.auth-shell--register .auth-field .form-control {
    padding: 0.5625rem 0.8125rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

.auth-form .form-control:hover,
.auth-form-panel .form-control:hover,
.auth-field .form-control:hover {
    border-color: #CBD5E1;
}

.auth-form .form-control:focus,
.auth-form-panel .form-control:focus,
.auth-field .form-control:focus {
    border-color: var(--system-primary);
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(30, 41, 59, 0.08),
        0 1px 2px rgba(15, 23, 42, 0.04);
    outline: none;
}

.auth-form .form-control.is-invalid,
.auth-form-panel .form-control.is-invalid {
    border-color: var(--system-danger);
    background-color: #FEF2F2;
}

.auth-form .invalid-feedback,
.auth-form-panel .invalid-feedback {
    font-size: 0.8125rem;
    color: var(--system-danger);
    margin-top: 0.3rem;
}

.auth-form .form-text,
.auth-form-panel .form-text {
    font-size: 0.8125rem;
    color: var(--system-text-muted);
    margin-top: 0.4rem;
    line-height: 1.45;
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.auth-form .form-check-input:checked {
    background-color: var(--system-primary);
    border-color: var(--system-primary);
}

.auth-form .form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.auth-form .btn-primary,
.auth-form-panel .btn-primary {
    position: relative;
    overflow: hidden;
    font-family: var(--auth-font-body);
    background: linear-gradient(180deg, #2A2A2A 0%, var(--system-primary, #111111) 50%, var(--system-primary-hover, #000000) 100%);
    border: 1px solid rgba(17, 17, 17, 0.35);
    color: #fff;
    font-weight: 600;
    border-radius: 11px;
    padding: 0.6875rem 1.5rem;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 16px rgba(17, 17, 17, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-shell--register .auth-btn-submit {
    padding: 0.625rem 1.35rem;
    font-size: 0.875rem;
}

.auth-form .btn-primary::after,
.auth-form-panel .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.auth-form .btn-primary:hover,
.auth-form-panel .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 8px 24px rgba(17, 17, 17, 0.28);
    color: #fff;
    filter: brightness(1.05);
}

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

.auth-form .auth-link,
.auth-form-panel .auth-link {
    font-size: 0.875rem;
    color: var(--system-text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-form .auth-link:hover,
.auth-form-panel .auth-link:hover {
    color: var(--system-accent-hover, #E04A8F);
    text-decoration: underline;
}

/* Password field */
.auth-password-field__input-wrap {
    position: relative;
}

.auth-password-field__input-wrap .form-control {
    padding-right: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--system-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-password-toggle:hover {
    color: var(--system-text);
    background: rgba(15, 23, 42, 0.06);
}

.auth-password-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-password-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-password-toggle [data-icon="show"] {
    display: none;
}

.auth-password-toggle.is-visible [data-icon="hide"] {
    display: none;
}

.auth-password-toggle.is-visible [data-icon="show"] {
    display: block;
}

/* OTP input */
.auth-otp-input {
    font-size: 1.75rem;
    letter-spacing: 0.45em;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 1rem 1.25rem !important;
    background: linear-gradient(180deg, #fff 0%, var(--system-soft-background) 100%) !important;
    border: 2px solid var(--system-border) !important;
    border-radius: 12px !important;
}

.auth-otp-input:focus {
    border-color: var(--system-accent) !important;
    box-shadow:
        0 0 0 4px var(--system-accent-glow, rgba(247, 98, 163, 0.25)),
        0 4px 16px rgba(17, 17, 17, 0.08) !important;
}

/* Legacy row helper — kept for compatibility */
.auth-form--register .auth-form-row {
    display: grid;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

@media (min-width: 576px) {
    .auth-form--register .auth-form-row--two {
        grid-template-columns: 1fr 1fr;
    }
}

/* Alerts */
.auth-alert {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: opacity 0.4s ease;
    line-height: 1.45;
}

.auth-alert--info {
    background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.auth-alert--success {
    background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%);
    color: #166534;
    border: 1px solid #BBF7D0;
}

.auth-alert--danger {
    background: linear-gradient(180deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.auth-alert--warning {
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.auth-alert.fade-out {
    opacity: 0;
}

/* Error content */
.auth-error-content {
    text-align: center;
}

.auth-error-content p {
    color: var(--system-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Entrance animations */
.auth-reveal {
    animation: authReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-reveal--delayed {
    animation-delay: 0.08s;
}

@keyframes authReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.05); }
    66% { transform: translate(-8px, 10px) scale(0.96); }
}

@keyframes authPatternDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-8px, -12px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-reveal,
    .auth-reveal--delayed {
        animation: none;
    }

    .auth-brand-panel__orb,
    .auth-brand-panel__pattern .auth-brand-pattern__svg {
        animation: none;
    }

    .auth-feature-card:hover {
        transform: none;
    }

    .auth-form .btn-primary:hover,
    .auth-form-panel .btn-primary:hover {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-brand-panel--full {
        display: none;
    }

    .auth-brand-panel--compact {
        display: flex;
        flex: none;
        max-width: none;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1.25rem;
        background: linear-gradient(135deg, #E04A8F 0%, #F762A3 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 20px rgba(224, 74, 143, 0.2);
    }

    .auth-brand-panel--compact .auth-brand-panel__name {
        font-size: 1.0625rem;
        font-family: var(--theme-heading-font-family);
        font-weight: 600;
        color: #fff;
    }

    .auth-shell__form {
        flex: 1;
        padding: 1.5rem 1.125rem 2.5rem;
    }

    .auth-form-panel__card {
        border-radius: 16px;
        padding: 1.5rem;
    }
}
