:root {
    /* Main background: Airy, modern light gray-blue */
    --bg: #f8fafc; 
    
    /* Card background: Pure white */
    --card: #ffffff; 
    
    /* Primary Aero Blue (#3f6ac9) */
    --mint: #3f6ac9; 
    
    /* Deep Navy for secondary buttons and accents */
    --violet: #1e293b; 
    
    /* Text: High-contrast charcoal */
    --text-high: #0f172a; 
    
    /* Muted text: Slate gray */
    --text-low: #64748b; 
    
    /* Subtle blue-tinted border */
    --input-border: #e2e8f0; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text-high);
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.auth-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Ambient Background Accents (Subtle for Light Mode) */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(140px);
    opacity: 0.06; /* Lowered significantly for light mode */
    z-index: -1;
}
.top-left { background: var(--mint); top: -200px; left: -100px; }
.bottom-right { background: var(--violet); bottom: -200px; right: -100px; }

/* The Polished Login Card */
.login-card {
    background: var(--card);
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border-radius: 32px;
    border: 1px solid rgba(63, 106, 201, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.card-header .logo {
    text-decoration: none;
    color: var(--text-high);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 24px;
}
.logo span { color: var(--mint); }

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-high);
    letter-spacing: -0.5px;
}

.card-header p {
    color: var(--text-low);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Form Styling */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-high);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-low);
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--input-border);
    padding: 14px 14px 14px 48px;
    border-radius: 12px;
    color: var(--text-high);
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--mint);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(63, 106, 201, 0.1);
}

.forgot-link {
    color: var(--mint);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.2s;
}
.forgot-link:hover {
    color: var(--violet);
}

/* Primary Button */
.btn-auth {
    width: 100%;
    background: var(--mint);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth:hover {
    background: var(--violet);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.15);
}

/* Social Login Section */
.social-auth {
    margin: 32px 0;
}

.divider {
    display: flex;
    align-items: center;
    color: var(--text-low);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--input-border);
    margin: 0 15px;
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-social {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--input-border);
    color: var(--text-high);
    padding: 12px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.footer-text {
    color: var(--text-low);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-text a {
    color: var(--mint);
    text-decoration: none;
    font-weight: 700;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 24px;
    }
}