/* 
CHANGE LOG
File: /static/css/auth.css
Document Type: CSS Stylesheet
Purpose: Styled login and register forms with neutral gray background and burgundy call-to-action buttons
Main App: refuge_app
HTML Templates: login.html, register.html
Dependencies: None
Version History:
2025-09-27 v2.0 - Updated to neutral gray background and burgundy buttons
2025-09-25 v1.0 - Initial creation with purple/blue gradient background and gradient buttons
*/

/* Page background */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f0f2f5; /* light neutral gray */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Login container */
.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e1e8ed;
}

/* Headings */
h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

/* Labels */
label {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Input fields */
input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #800020; /* burgundy */
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* Primary button */
button {
    margin-top: 2rem;
    width: 100%;
    padding: 14px;
    background: #800020; /* burgundy */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background: #660018; /* darker burgundy */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Error message box */
.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 12px;
    background-color: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem;
        margin: 0 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* Shared form container for login & register */
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    border: 1px solid #e1e8ed;
    margin: auto;
}

.form-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

.form-container label {
    font-weight: 500;
    margin-top: 1rem;
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
}

.form-container input,
.form-container select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    margin-top: 0.4rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-container input:focus,
.form-container select:focus {
    outline: none;
    border-color: #800020; /* burgundy */
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.form-container button {
    margin-top: 2rem;
    width: 100%;
    padding: 14px;
    background: #800020; /* burgundy */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.form-container button:hover {
    background: #660018;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

.form-container a {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #800020; /* burgundy links */
}
