/* ═══════════════════════════════════════════════════════════════
   Auth Pages — Login & Signup
   ═══════════════════════════════════════════════════════════════ */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 100px);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header svg { margin-bottom: .75rem; }
.auth-header h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-header p { margin: 0; }

/* ── Password Toggle ───────────────────────────────────────── */
.input-toggle-wrap {
    position: relative;
}

.input-toggle-wrap .form-control {
    padding-right: 2.75rem;
}

.pw-toggle {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: .25rem;
    display: flex;
    align-items: center;
    transition: color .2s ease;
}

.pw-toggle:hover { color: var(--gray-700); }

/* ── Password Strength Meter ───────────────────────────────── */
.pw-strength {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .35s ease, background .35s ease;
}

.pw-strength-fill[data-level="0"] { width: 0; }
.pw-strength-fill[data-level="1"] { width: 25%; background: var(--danger); }
.pw-strength-fill[data-level="2"] { width: 50%; background: var(--warning); }
.pw-strength-fill[data-level="3"] { width: 75%; background: #3B82F6; }
.pw-strength-fill[data-level="4"] { width: 100%; background: var(--success); }

.pw-strength-label {
    min-width: 3.5rem;
    text-align: right;
    font-weight: 500;
}

/* ── Multi-Step Form ───────────────────────────────────────── */
.auth-step {
    display: none;
    animation: authStepIn .35s ease;
}

.auth-step.active {
    display: block;
}

@keyframes authStepIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-step.slide-out {
    animation: authStepOut .2s ease forwards;
}

@keyframes authStepOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* ── Divider ───────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--gray-400);
    font-size: .8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ── Social Buttons ────────────────────────────────────────── */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.auth-social .btn {
    justify-content: center;
    gap: .5rem;
    font-weight: 500;
}

.auth-social .btn svg { flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.auth-footer {
    margin-top: 1.25rem;
    font-size: .875rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card { padding: 1.5rem 1.25rem; }
    .auth-header h1 { font-size: 1.25rem; }
    .step-label { display: none; }
    .progress-line { margin-bottom: 0; }
}
