:root { 
    --brand-navy: #00b4d8; 
    --brand-navy-light: #00b4d8; 
    --brand-cyan: #00b4d8; 
    --brand-bg: #0f172a; 
    --card-bg: #1e293b; 
    --text-main: #e2e8f0; 
    --text-muted: #94a3b8; 
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
}

body { 
    background-color: var(--brand-bg); 
    font-family: 'Inter', sans-serif; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0; 
    color: var(--text-main);
}

.login-wrapper { 
    display: flex; 
    width: 100%; 
    max-width: 1000px; 
    height: 600px; 
    background: var(--card-bg); 
    border-radius: 20px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    overflow: hidden; 
    z-index: 10; 
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-side { 
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); 
    width: 45%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 40px; 
    color: white; 
    text-align: center; 
    position: relative; 
}

.brand-side::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(45, 212, 191, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.brand-logo-container { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 6px; 
    border-radius: 16px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    margin-bottom: 35px; 
    z-index: 1;
    border: 0px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.brand-logo { max-width: 400px; height: auto; }
.brand-text { z-index: 1; }
.brand-text h2 { font-weight: 800; letter-spacing: -0.5px; font-size: 2rem; margin-bottom: 12px; color: #f8fafc; }
.brand-text p { color: #cbd5e1; font-size: 1.05rem; line-height: 1.6; }

.form-side { 
    width: 55%; 
    padding: 60px 70px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    background: var(--card-bg); 
}

.form-header { text-align: left; margin-bottom: 35px; }
.form-header h3 { font-weight: 800; font-size: 1.75rem; letter-spacing: -0.5px; margin-bottom: 5px; color: #f8fafc; } 
.form-header p { color: var(--text-muted); font-size: 0.95rem; }

.form-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; } 
.auth-link { color: var(--brand-navy); font-weight: 600; font-size: 0.8rem; text-decoration: none; transition: color 0.2s; }
.auth-link:hover { color: #ffffff; }

.input-group { border-radius: 10px; overflow: hidden; border: 1px solid var(--input-border); background-color: var(--input-bg); transition: all 0.2s ease; }
.input-group:focus-within { border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1); background-color: rgba(255, 255, 255, 0.1); }

.input-group-text { background: transparent; border: none; color: #94a3b8; padding-left: 16px; }
.form-control { border: none; background: transparent; padding: 14px 12px; color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.form-control::placeholder { color: #64748b; font-weight: 400; }
.form-control:focus { background: transparent; box-shadow: none; outline: none; color: #ffffff; }

.toggle-password-btn { background: transparent; border: none; color: #94a3b8; padding-right: 16px; cursor: pointer; transition: color 0.2s; }
.toggle-password-btn:hover { color: var(--brand-cyan); }

.btn-login { 
    background-color: var(--brand-navy); 
    color: #0f172a; 
    padding: 14px; 
    font-size: 0.95rem;
    font-weight: 800; 
    border-radius: 10px; 
    border: none; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.2);
    letter-spacing: 0.5px;
}
.btn-login:hover:not(:disabled) { 
    background-color: var(--brand-navy-light); 
    transform: translateY(-1px); 
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4); 
    color: #0f172a;
}
.btn-login:disabled { background-color: #475569; color: #94a3b8; cursor: not-allowed; box-shadow: none; }

.footer-text { color: #64748b; font-size: 0.8rem; font-weight: 500; }

.modal-content { background-color: var(--card-bg) !important; color: var(--text-main); border: 1px solid rgba(255,255,255,0.1) !important; }
.modal-header, .modal-footer { background-color: var(--brand-bg) !important; border-color: rgba(255,255,255,0.05) !important; }
.modal-title { color: #f8fafc !important; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); } 

@media (max-width: 900px) { 
    .login-wrapper { flex-direction: column; height: auto; max-width: 450px; margin: 20px; border-radius: 16px; } 
    .brand-side { display: none; } 
    .form-side { width: 100%; padding: 40px 30px; } 
}