/* --- Auth Pages (Login / Register) --- */

.auth-container {
    position: relative;
    z-index: 1;
    max-width: 450px;
    margin: 60px auto;
    padding: 0 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* Password requirements */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: -8px 0 20px;
}
.password-requirements li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.password-requirements li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}
.password-requirements li.met::before {
    background: var(--success);
}
.password-requirements li.met {
    color: var(--success);
}

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-xs);
    padding: 12px 16px;
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xs);
    padding: 12px 16px;
    color: var(--success);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-message {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xs);
    padding: 12px 16px;
    color: var(--warning);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* reCAPTCHA container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.auth-links p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.auth-links a {
    color: var(--blue-400);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}
.auth-links a:hover {
    color: var(--blue-500);
}

/* Auth form inputs (auto-style all inputs inside auth-card) */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="url"],
.auth-card input[type="number"],
.auth-card select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.auth-card input::placeholder {
    color: var(--text-muted);
}

.auth-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.auth-card .form-group .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.auth-card .form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.auth-card .g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Auth form button */
.auth-card .btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-family);
}
.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 4px 24px var(--blue-glow);
    transform: translateY(-1px);
}

/* Lockout timer */
.lockout-timer {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}
.lockout-timer span {
    color: var(--danger, #f87171);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
    .auth-container {
        margin: 32px auto;
    }
}
