﻿:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-secondary: #0ea5e9;
    --auth-bg: #eef6ff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #dbeafe;
    --auth-card: rgba(255, 255, 255, 0.92);
    --auth-shadow: 0 24px 70px rgba(37, 99, 235, 0.22);
}

* {
    box-sizing: border-box;
}

body.auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--auth-text);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 34%), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.22), transparent 35%), linear-gradient(135deg, #f8fbff 0%, #eaf3ff 45%, #f7fbff 100%);
    overflow-x: hidden;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 16px;
    position: relative;
}

    .auth-page::before,
    .auth-page::after {
        content: "";
        position: fixed;
        border-radius: 999px;
        filter: blur(8px);
        opacity: 0.55;
        pointer-events: none;
    }

    .auth-page::before {
        width: 260px;
        height: 260px;
        left: -80px;
        top: -80px;
        background: rgba(37, 99, 235, 0.18);
    }

    .auth-page::after {
        width: 320px;
        height: 320px;
        right: -130px;
        bottom: -130px;
        background: rgba(14, 165, 233, 0.16);
    }

.auth-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.auth-intro {
    background: linear-gradient(145deg, #1d4ed8, #2563eb 48%, #0ea5e9);
    border-radius: 30px;
    padding: 34px;
    color: white;
    box-shadow: var(--auth-shadow);
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .auth-intro::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        border-radius: 999px;
        right: -140px;
        top: -120px;
        background: rgba(255, 255, 255, 0.14);
    }

    .auth-intro::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        left: -80px;
        bottom: -80px;
        background: rgba(255, 255, 255, 0.12);
    }

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 27px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.auth-brand-text strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: 0.2px;
}

.auth-brand-text span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    margin-top: 2px;
}

.auth-hero {
    position: relative;
    z-index: 1;
    padding: 34px 0;
}

    .auth-hero h1 {
        font-size: clamp(2.1rem, 4vw, 3.55rem);
        font-weight: 850;
        line-height: 1.08;
        letter-spacing: -1.4px;
        margin: 0 0 18px;
    }

    .auth-hero p {
        max-width: 520px;
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 1.04rem;
        line-height: 1.7;
    }

.auth-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.auth-stat-card {
    padding: 16px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

    .auth-stat-card i {
        font-size: 1.15rem;
        margin-bottom: 10px;
        display: block;
    }

    .auth-stat-card strong {
        display: block;
        font-size: 1.2rem;
        line-height: 1;
    }

    .auth-stat-card span {
        display: block;
        margin-top: 6px;
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.78);
    }

.auth-card-wrap {
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    background: var(--auth-card);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(219, 234, 254, 0.9);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-card-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--auth-primary), var(--auth-secondary));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
    font-size: 30px;
}

.auth-card-header h2 {
    font-size: 1.7rem;
    font-weight: 850;
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-card-header p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 0.96rem;
}

.auth-alert {
    border: 0;
    border-radius: 18px;
    padding: 13px 15px;
    font-weight: 600;
    margin-bottom: 18px;
}

.auth-field {
    margin-bottom: 17px;
}

.auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 700;
    font-size: 0.94rem;
}

.auth-input-group {
    min-height: 52px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: 0.2s ease;
}

    .auth-input-group:focus-within {
        border-color: rgba(37, 99, 235, 0.62);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
    }

.auth-input-icon {
    width: 52px;
    display: grid;
    place-items: center;
    color: var(--auth-primary);
    font-size: 1.15rem;
}

.auth-input {
    flex: 1;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px 0 0;
    font-weight: 600;
    color: var(--auth-text);
}

    .auth-input::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

.auth-toggle-pass {
    width: 50px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #64748b;
    display: grid;
    place-items: center;
    transition: 0.2s ease;
}

    .auth-toggle-pass:hover {
        color: var(--auth-primary);
        background: #eff6ff;
    }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 6px 0 20px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
}

    .auth-check input {
        width: 17px;
        height: 17px;
        accent-color: var(--auth-primary);
    }

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 750;
}

    .auth-link:hover {
        color: var(--auth-primary-dark);
        text-decoration: underline;
    }

.auth-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: white;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
    transition: 0.2s ease;
}

    .auth-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.34);
    }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 700;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        height: 1px;
        background: #e2e8f0;
        flex: 1;
    }

.auth-bottom {
    text-align: center;
    color: var(--auth-muted);
    font-weight: 600;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-intro {
        min-height: unset;
        padding: 26px;
    }

    .auth-hero {
        padding: 28px 0 20px;
    }

    .auth-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .auth-intro {
        border-radius: 26px;
        padding: 22px;
    }

    .auth-hero h1 {
        font-size: 2rem;
    }

    .auth-hero p {
        font-size: 0.95rem;
    }

    .auth-card {
        border-radius: 26px;
        padding: 24px 18px;
    }

    .auth-card-header h2 {
        font-size: 1.48rem;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
.auth-shell-login-only {
    max-width: 460px;
    grid-template-columns: 1fr;
}

    .auth-shell-login-only .auth-card-wrap {
        width: 100%;
    }

    .auth-shell-login-only .auth-card {
        padding: 34px 32px;
    }

@media (max-width: 576px) {
    .auth-shell-login-only {
        max-width: 100%;
    }

        .auth-shell-login-only .auth-card {
            padding: 26px 18px;
        }
}
.auth-shell-register {
    max-width: 520px;
    grid-template-columns: 1fr;
}

.auth-shell-forgot {
    max-width: 500px;
    grid-template-columns: 1fr;
}

.auth-help-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 15px;
    border-radius: 18px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #334155;
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.55;
}

    .auth-help-box i {
        color: var(--auth-primary);
        font-size: 1.15rem;
        margin-top: 2px;
    }

.auth-inline-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .auth-shell-register,
    .auth-shell-forgot {
        max-width: 100%;
    }
}