/* ===============================================
   AUTH PAGE STYLES (css/auth.css)
   Updated to match logo background color
   =============================================== */

:root {
    /* Updated to match the specific navy in the 4ESG logo */
    --primary: #2a2872; 
    --accent: #3b82f6;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    background: radial-gradient(circle at top left, #f8fafc, #e2e8f0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
}

.auth-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    overflow: hidden; 
    padding-top: 0 !important; 
}

/* Banner styling - Matches logo background exactly */
.auth-header-banner {
    background-color: var(--primary);
    margin-left: -2rem; 
    margin-right: -2rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    color: #64748b;
    border-bottom: 2px solid transparent;
}

.toggle-btn.active {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}

.requirement {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.requirement.met { 
    color: var(--success); 
}

#error-msg {
    transition: all 0.3s ease;
    border-width: 1px;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Button matches the banner color */
#submit-btn {
    background-color: var(--primary);
}

#submit-btn:hover {
    background-color: #162046; /* Slightly darker for hover effect */
}

button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        padding-top: 0 !important;
    }
    .auth-header-banner {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
}
