/**
 * @file auth.css
 * @description Styles for login, signup, and forgot password pages.
 * Designed to integrate with the existing main.css theme.
 */

/* --- Page Layout --- */

.auth-page {
    background-color: var(--background-color);
}

.auth-section {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--accent-color);
}

/* --- Typography --- */
.auth-title {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 28px;
}

.auth-subtitle {
    color: var(--default-color);
    opacity: 0.7;
    font-size: 16px;
}

.auth-switch-text,
.auth-switch-text a {
    color: var(--default-color);
    opacity: 0.8;
}

.auth-switch-text a {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

/* --- Forms --- */
.form-group label {
    color: var(--default-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 15px;
    height: 48px;
    border-radius: 6px;
}

.form-control:focus {
    background-color: #2c2c2c;
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25); /* Accent color glow */
}

/* --- Validation States --- */
.form-control.is-invalid {
    border-color: #dc3545;
}
.form-control.is-valid {
    border-color: #198754;
}
.invalid-feedback {
    font-size: 13px;
    margin-top: 4px;
}

.forgot-password-link {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

/* --- Buttons --- */
.btn-auth {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background-color: color-mix(in srgb, var(--accent-color), #000 15%);
    transform: translateY(-2px);
}

/* --- Password Strength Meter --- */
.password-strength-meter {
    height: 5px;
    width: 100%;
    background-color: #333;
    margin-top: 8px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.password-strength-meter.weak { background-color: #e74c3c; }
.password-strength-meter.medium { background-color: #f39c12; }
.password-strength-meter.strong { background-color: #2ecc71; }
