/* Auth — login & register split layout */

.auth-body {
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: rgba(35, 8, 90, 0.08);
    --auth-brand-bg: linear-gradient(155deg, #23085a 0%, #1a0645 42%, #2d3a8c 100%);
    background: #f8fafc;
    background-image:
        radial-gradient(ellipse 80% 55% at 92% -8%, rgba(91, 141, 239, 0.16), transparent 58%),
        radial-gradient(ellipse 60% 45% at 4% 102%, rgba(35, 8, 90, 0.06), transparent 55%);
}

.auth-body .main {
    padding: 0;
    min-height: calc(100dvh - 68px);
}

.auth-body .site-footer {
    display: none;
}

.auth-shell {
    padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
    min-height: calc(100dvh - 68px);
    display: flex;
    align-items: center;
}

.auth-shell-container {
    width: 100%;
}

.auth-shell-card {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    max-width: 980px;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    background: #ffffff;
    box-shadow:
        0 28px 90px rgba(35, 8, 90, 0.1),
        0 8px 24px rgba(35, 8, 90, 0.05);
}

/* Brand panel */
.auth-brand {
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--auth-brand-bg);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(91, 141, 239, 0.35), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.06), transparent 40%);
    pointer-events: none;
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-brand-logo-link {
    display: inline-flex;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.45rem 0.7rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.auth-brand-logo {
    height: 46px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.auth-brand-tagline {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.72);
}

.auth-brand-title {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-brand-title span {
    color: #93c5fd;
}

.auth-brand-lead {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.82);
    max-width: 34ch;
}

.auth-brand-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-brand-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.9);
}

.auth-brand-feature-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
}

.auth-brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.auth-brand-stats div {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-brand-stats strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.auth-brand-stats span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.65);
}

/* Form panel */
.auth-panel {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-head {
    margin-bottom: 1.5rem;
}

.auth-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.1);
    border: 1px solid rgba(91, 141, 239, 0.18);
    margin-bottom: 0.85rem;
}

.auth-panel h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.55rem, 3.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
}

.auth-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--auth-muted);
    max-width: 42ch;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

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

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 0.4rem;
}

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

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
}

.auth-input-wrap input {
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 1rem 0.8rem 2.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--auth-ink);
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input-wrap input::placeholder {
    color: #94a3b8;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.14);
}

.auth-submit {
    margin-top: 0.5rem;
    min-height: 3.1rem;
    border-radius: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-switch {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-switch a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

.auth-support {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-support-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--auth-muted);
    margin-bottom: 0.6rem;
}

.auth-contact-chips {
    justify-content: center;
}

/* Register — slightly taller card */
.auth-shell--register .auth-shell-card {
    max-width: 1020px;
}

/* Tablet */
@media (max-width: 900px) {
    .auth-shell-card {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-brand {
        padding: 1.5rem 1.35rem 1.25rem;
        gap: 1rem;
    }

    .auth-brand-copy {
        display: none;
    }

    .auth-brand-features {
        display: none;
    }

    .auth-brand-stats {
        margin-top: 0;
    }

    .auth-panel {
        padding: 1.5rem 1.35rem 1.75rem;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .auth-shell {
        padding: 0.75rem 0 1.5rem;
        align-items: flex-start;
    }

    .auth-shell-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .auth-shell-card {
        border-radius: 1.15rem;
    }

    .auth-brand {
        padding: 1.15rem 1.15rem 1rem;
        text-align: center;
        align-items: center;
    }

    .auth-brand-stats {
        width: 100%;
    }

    .auth-panel {
        padding: 1.25rem 1.15rem 1.5rem;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-input-wrap input {
        font-size: 16px; /* prevent iOS zoom */
    }

    .auth-panel-head {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 380px) {
    .auth-brand-stats {
        grid-template-columns: 1fr;
    }

    .auth-brand-stats div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
    }

    .auth-brand-stats strong,
    .auth-brand-stats span {
        display: inline;
        margin: 0;
        font-size: 0.82rem;
        text-transform: none;
        letter-spacing: 0;
    }
}
