.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: 0 auto; 
}

body.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* AUTH FORM BUTTON STYLING - FIXED */
#loginForm button[type="submit"],
#registerForm button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

#loginForm button[type="submit"]:hover,
#registerForm button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#loginForm button[type="submit"]:active,
#registerForm button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

#loginForm button[type="submit"]:disabled,
#registerForm button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    color: #e74c3c;
    background: #ffe6e6;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffcccc;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.auth-card p {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.auth-card p:first-of-type {
    margin-top: 25px;
}

.auth-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Dark mode support for auth pages */
html.dark-mode .auth-card {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html.dark-mode .auth-card h1 {
    color: #e2e8f0;
}

html.dark-mode .form-group label {
    color: #cbd5e0;
}

html.dark-mode .form-group input {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

html.dark-mode .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

html.dark-mode .form-group input::placeholder {
    color: #718096;
}

html.dark-mode .auth-card p {
    color: #a0aec0;
}

html.dark-mode .error-message {
    background: #742a2a;
    color: #fc8181;
    border-color: #c53030;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-card h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }
}
