@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2e3192;
    --primary-dark: #1a1f5c;
    --primary-light: #4a4db8;
    --accent: #1ba94c;
    --bg: #f0f2f8;
}

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

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background: linear-gradient(135deg, var(--bg) 0%, #e8ebf5 100%);
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.login-left::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.login-left-content {
    position: relative;
    z-index: 1;
}

.login-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.login-left p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.login-left .features {
    margin-top: 2rem;
}

.login-left .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

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

.login-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1c1f33;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-header p {
    color: #7a7f9a;
    font-size: 0.95rem;
}

.form-group { 
    text-align: left; 
    margin-bottom: 1.25rem; 
}

.form-group label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #475569; 
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input { 
    width: 100%; 
    padding: 0.85rem 1.1rem; 
    border: 1.5px solid #e1e3ee; 
    border-radius: 10px; 
    font-size: 0.95rem; 
    outline: none; 
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:hover { 
    border-color: rgba(46, 49, 146, 0.3);
}

.form-group input:focus { 
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1);
}

.btn { 
    width: 100%; 
    padding: 0.9rem; 
    font-size: 1rem; 
    font-weight: 700; 
    border-radius: 10px; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    margin-top: 1rem;
    font-family: inherit;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(46, 49, 146, 0.35);
}

.btn:hover { 
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 49, 146, 0.4);
}

.alert { 
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #dc3545; 
    padding: 1rem 1.25rem; 
    border-radius: 10px; 
    font-size: 0.9rem; 
    text-align: left; 
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint { 
    margin-top: 2rem; 
    font-size: 0.85rem; 
    color: #64748b; 
    background: #f8fafc; 
    padding: 1.25rem; 
    border-radius: 12px; 
    border: 1px dashed #e1e3ee;
    text-align: left;
}

.hint strong { 
    color: #475569;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hint code {
    background: rgba(46, 49, 146, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 420px;
    }
    
    .login-left {
        padding: 2rem;
    }
    
    .login-left h1 {
        font-size: 1.75rem;
    }
    
    .login-left .features {
        display: none;
    }
    
    .login-right {
        padding: 2rem;
    }
}
