:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #10b981;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0a0e17;
        --text-main: #f3f4f6;
        --text-muted: #94a3b8;
        --glass-bg: rgba(15, 23, 42, 0.7);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0a0e17;
        --text-main: #f3f4f6;
        --text-muted: #94a3b8;
        --glass-bg: rgba(17, 24, 39, 0.85);
        --glass-border: rgba(255, 255, 255, 0.05);
    }
    
    .login-card-v2 {
        background: #111827 !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    }
    
    .form-control {
        background: #1f2937 !important;
        border-color: #374151 !important;
        color: white !important;
    }
    
    .login-side-form {
        background: #0a0e17 !important;
    }
}

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

body, html {
    height: 100%;
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-light);
}

.login-page-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;
    animation: fadeIn 0.8s ease-out;
}

/* Side Info Panel */
.login-side-info {
    flex: 1.2;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: white;
    overflow: hidden;
}

.login-side-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/education_login_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    animation: slowPan 20s infinite alternate ease-in-out;
}

@keyframes slowPan {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.brand-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.brand-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 8px;
    font-weight: 300;
}

.info-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.info-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.info-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Login Panel */
.login-side-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-light);
}

.login-card-v2 {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.login-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.login-card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.google-btn {
    background: white !important;
    color: #1f2937 !important;
    border: 1px solid #e2e8f0 !important;
}

.google-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.google-btn .btn-icon {
    width: 20px;
    height: 20px;
}

.error-container {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid #fee2e2;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.hidden { display: none !important; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .login-side-info { display: none; }
    .login-side-form { background: white; }
    .login-card-v2 { box-shadow: none; border: none; padding: 20px; }
}
