:root {
    --primary-color: #2080EB;
    --primary-hover: #1a6bca;
    --bg-color: #0f1115;
    --card-bg: #1a1d23;
    --input-bg: #252a33;
    --text-color: #eef2f6;
    --text-muted: #aeb4c0;
    --border-radius: 12px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative; /* For footer positioning */
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
    z-index: 1; /* Ensure above footer if needed */
}

.auth-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Ensure padding doesn't break width */
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: var(--primary-hover);
}

.auth-links {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-links a {
    color: #ffffff !important; /* White text for better visibility */
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer specific styles for auth pages */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    background-color: var(--bg-color); /* Ensure background matches body to avoid transparency issues */
    z-index: 10;
}
