:root {
    --primary-dark: #0a1628;
    --primary: #1a2a4a;
    --primary-medium: #1e3a6f;
    --primary-light: #2b4f8c;
    --primary-gradient: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #1e3a6f 100%);
    --accent: #4a90d9;
    --accent-light: #6aafe6;
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #7a9bcb;
    --bg-dark: #0d1b2a;
    --bg-card: rgba(26, 42, 74, 0.88);
    --border-color: rgba(74, 144, 217, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: var(--bg-dark); position: relative;
}

.page-bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; background: var(--bg-dark); }
.page-bg .bg-image {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1432889821006-c6c5b1d7a2e0?w=1920&q=80') center center / cover no-repeat;
    opacity: 0.3;
}
.page-bg .bg-image::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(26,42,74,0.7) 50%, rgba(13,27,42,0.85) 100%);
}
.page-bg .gradient-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(13,27,42,0.4) 30%, rgba(26,42,74,0.3) 50%, rgba(13,27,42,0.4) 70%, rgba(10,22,40,0.7) 100%);
    z-index: 1;
}
.page-bg .grid-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2;
    background-image: linear-gradient(rgba(74,144,217,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(74,144,217,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.login-container {
    position: relative; z-index: 10;
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 1000px; width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.login-image {
    background: linear-gradient(135deg, rgba(10,22,40,0.9) 0%, rgba(26,42,74,0.7) 50%, rgba(30,58,111,0.8) 100%);
    padding: 48px 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; min-height: 400px;
    position: relative; overflow: hidden;
    border-right: 1px solid var(--border-color);
}
.login-image .brand-icon { font-size: 56px; margin-bottom: 12px; z-index: 2; }
.login-image .brand-name {
    font-size: 30px; font-weight: 900; letter-spacing: -1px;
    margin-bottom: 4px; z-index: 2; color: var(--text-primary); line-height: 1.2;
}
.login-image .brand-name span { color: var(--accent-light); }
.login-image .brand-tagline { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; z-index: 2; }
.login-image .brand-tagline strong { color: var(--text-primary); }
.login-image .features {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
    margin-top: 16px; width: 100%; z-index: 2;
}
.login-image .feature-item {
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.login-image .feature-item i { font-size: 20px; color: var(--accent-light); margin-bottom: 6px; display: block; }
.login-image .feature-item span { font-size: 11px; color: var(--text-secondary); }

.login-form {
    padding: 48px 40px;
    display: flex; flex-direction: column; justify-content: center;
    background: rgba(13, 27, 42, 0.4);
    backdrop-filter: blur(10px);
}
.login-form .form-header { margin-bottom: 32px; }
.login-form .form-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; color: var(--text-primary); }
.login-form .form-header p { color: var(--text-secondary); font-size: 14px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.login-form .form-group .input-wrapper { position: relative; }
.login-form .form-group .input-wrapper i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px;
    z-index: 2;
}
.login-form .form-group input {
    width: 100%; padding: 12px 44px 12px 44px;
    background: rgba(10, 22, 40, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary); font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition); outline: none;
}
.login-form .form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
    background: rgba(10, 22, 40, 0.9);
}
.login-form .form-group input::placeholder { color: var(--text-muted); }
.password-toggle {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 15px; padding: 4px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
}
.password-toggle:hover { color: var(--accent-light); }

.login-form .btn-login {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #1e3a6f 0%, #2b4f8c 50%, #3a7bc8 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: white; font-size: 16px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 4px;
}
.login-form .btn-login:hover { transform: translateY(-2px); box-shadow: 0 4px 25px rgba(74, 144, 217, 0.4); }
.login-form .btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.login-form .btn-login i { font-size: 18px; }
.login-form .error-message {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: none; align-items: center; gap: 10px;
}
.login-form .error-message.show { display: flex; }
.login-form .form-footer {
    margin-top: 24px; text-align: center;
    color: var(--text-muted); font-size: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.spinner {
    display: none; width: 20px; height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.spinner.active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .login-container { grid-template-columns: 1fr; max-width: 480px; }
    .login-image { padding: 32px 24px; min-height: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
    .login-image .brand-name { font-size: 26px; }
    .login-form { padding: 32px 24px; }
}
@media (max-width: 640px) {
    body { padding: 12px; }
    .login-image { padding: 24px 16px; }
    .login-image .brand-name { font-size: 22px; }
    .login-image .features { display: none; }
    .login-form { padding: 24px 16px; }
    .login-form .form-header h2 { font-size: 22px; }
}

.brand-logo-container img{
    border-radius: 10px;
}
