/* ===== AUTHENTICATION STYLES (login, register, auth_helper) ===== */

/* Auth body for centered layout */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1a1a2e;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid #c41e3a;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.3);
    text-align: center;
}

.auth-box h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-form label {
    display: block;
    color: #b8860b;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    background: #0a0a0f;
    border: 2px solid #4a0000;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #c41e3a;
}

.auth-form button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #c41e3a, #7a1226);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.error-msg {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-msg {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #44ff44;
    color: #6bff6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.auth-links a {
    color: #b8860b;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #ffd700;
}

.back-home,
.back-link {
    display: block;
    margin-top: 15px;
    color: #666;
}

.back-link {
    color: #b8860b;
}

.password-hint {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* Auth helper specific */
.auth-box input[type="password"] {
    width: 100%;
    padding: 12px;
    background: #0a0a0f;
    border: 2px solid #4a0000;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 15px;
}

.auth-box input[type="password"]:focus {
    outline: none;
    border-color: #c41e3a;
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c41e3a, #7a1226);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.auth-box button:hover {
    transform: scale(1.02);
}

.auth-box .error {
    color: #ff6b6b;
    margin-bottom: 15px;
}
