/* ===== AUTH SECTION ===== */
.section--auth {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, #0d1525 100%);
    padding: 60px 0 80px;
}

.section--auth-full {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.section--auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 40% 50% at 50% 30%, rgba(79, 143, 255, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse 30% 40% at 70% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.section--auth-full > .container {
    width: 100%;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===== AUTH CARD ===== */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    padding: 44px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-card--register {
    max-width: 680px;
}

/* ===== CARD HEADER ===== */
.auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 143, 255, 0.1);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0 auto 16px;
}

.auth-card__icon--accent {
    background: rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.2);
    color: var(--accent);
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-card__desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ===== AUTH FORM ===== */
.auth-form .form__group {
    margin-bottom: 20px;
}

.auth-form .form__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-form .form__label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.auth-form .form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-lighter);
    color: var(--text);
}

.auth-form .form__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.15);
    background: var(--bg-dark);
}

.auth-form .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form__optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

/* ===== PASSWORD WRAPPER ===== */
.auth-form__password-wrapper {
    position: relative;
}

.auth-form__password-wrapper .form__input {
    padding-right: 48px;
}

.auth-form__toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.auth-form__toggle-password:hover {
    color: var(--primary);
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.password-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.password-strength__fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength__fill[data-strength="weak"] {
    width: 25%;
    background: #ef4444;
}

.password-strength__fill[data-strength="medium"] {
    width: 50%;
    background: #f59e0b;
}

.password-strength__fill[data-strength="strong"] {
    width: 75%;
    background: var(--accent);
}

.password-strength__fill[data-strength="very-strong"] {
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.password-strength__text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

/* ===== OPTIONS ROW ===== */
.auth-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-form__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.auth-form__remember input[type="checkbox"] {
    display: none;
}

.auth-form__checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.auth-form__checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: var(--white);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.auth-form__remember input[type="checkbox"]:checked + .auth-form__checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.auth-form__remember input[type="checkbox"]:checked + .auth-form__checkbox::after {
    opacity: 1;
    transform: scale(1);
}

.auth-form__remember a {
    color: var(--primary);
    font-weight: 500;
}

.auth-form__remember a:hover {
    text-decoration: underline;
}

.auth-form__forgot {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 500;
}

.auth-form__forgot:hover {
    text-decoration: underline;
}

/* ===== SUBMIT BUTTON ===== */
.auth-form__submit {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

/* ===== SWITCH LINK ===== */
.auth-card__switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.auth-card__switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-card__switch a:hover {
    text-decoration: underline;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] .section--auth {
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 50%, #f0f2f7 100%);
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-form__checkbox {
    background: #f5f7fb;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .auth-form__forgot {
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section--auth {
        padding: 40px 0 60px;
    }

    .section--auth-full {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .auth-card {
        padding: 32px 24px;
    }

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

    .auth-form__options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
