/**
 * Auth CSS - Shared styles for authentication pages
 * (login, register, verify-2fa, forgot-password, reset-password)
 */

body.auth-page {
    background: linear-gradient(135deg, var(--color-primary) 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.auth-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.auth-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
}

/* Auth form elements */
.auth-container .form-group {
    margin-bottom: 20px;
}

.auth-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-container input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    font-size: 16px;
    margin-top: 10px;
}

/* Auth messages */
.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #3c3;
}

/* Auth footer links */
.footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.footer-links a {
    color: var(--color-primary);
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Back link for forgot/reset pages */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Info text for auth pages */
.info-text {
    background: #f0f4ff;
    border-left: 4px solid var(--color-primary);
    padding: 12px;
    border-radius: 4px;
    color: var(--color-primary);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Verify-2fa specific: centered text, code input */
.auth-container.auth-centered {
    text-align: center;
}

.auth-container .code-input {
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 480px) {
    .auth-container {
        padding: 24px 20px;
    }

    .auth-container h1 {
        font-size: 22px;
    }

    .auth-container .code-input {
        min-height: 44px;
    }
}

/* Register specific: wider container */
.auth-container.auth-wide {
    max-width: 450px;
}
