:root {
    --navy-navy: #1a237e;
    --bg-light: #f5f7fa;
    --blue-link: #00a3ff;
}

/* --- KUSTOM CSS SWEETALERT COMPACT --- */
/* Gaya ini akan otomatis teraplikasi saat SweetAlert muncul di login.php */
.swal2-popup {
    width: 350px !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif !important;
}

.swal2-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.swal2-html-container {
    font-size: 13px !important;
    margin: 10px 0 !important;
}

.swal2-styled {
    padding: 8px 20px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

.swal2-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 10px auto !important;
}

.swal2-icon .swal2-icon-content {
    font-size: 40px !important;
}

/* --- LAYOUT UTAMA --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0; 
    padding: 20px;
}

.main-container {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 60px; 
    max-width: 1200px; 
    width: 100%;
}

/* --- BRANDING SIDE --- */
.branding-side { 
    text-align: center; 
    flex: 1.2; 
}

.branding-side img { 
    width: 130px; 
    margin-bottom: 20px; 
}

.branding-side h2 { 
    font-weight: 500; 
    font-size: 1.25rem; 
    line-height: 1.5; 
    color: #4b5563; 
    max-width: 800px; 
    margin: 0 auto; 
}

/* --- LOGIN CARD --- */
.login-card {
    background: #ffffff; 
    width: 100%; 
    max-width: 420px;
    padding: 45px; 
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    flex: 1;
}

.login-card h3 { 
    font-weight: 700; 
    font-size: 1.4rem; 
    text-align: center; 
    margin-bottom: 30px; 
    color: #1e293b; 
}

.form-label { 
    font-size: 0.8rem; 
    font-weight: 600; 
    color: #475569; 
    margin-bottom: 6px; 
}

.form-control { 
    border-radius: 10px; 
    padding: 10px 16px; 
    border: 1px solid #e2e8f0; 
    font-size: 0.9rem; 
}

/* --- CAPTCHA --- */
.captcha-flex-wrapper {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 15px;
}

.captcha-visual img { 
    height: 60px; 
    width: auto; 
    display: block; 
}

.captcha-input-box .form-control { 
    width: 140px; 
    height: 45px; 
    border-radius: 10px; 
}

/* --- BUTTONS & LINKS --- */
.btn-login {
    background-color: var(--navy-navy); 
    color: white; 
    border: none;
    padding: 13px; 
    border-radius: 12px; 
    font-weight: 600;
    width: 100%; 
    margin-top: 25px; 
    transition: all 0.3s;
}

.btn-login:hover { 
    background-color: #0d125a; 
    transform: translateY(-1px); 
}

.footer-link { 
    text-align: center; 
    margin-top: 20px; 
    font-size: 0.8rem; 
    color: #94a3b8; 
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .main-container { 
        flex-direction: column; 
        gap: 40px; 
    }
    .branding-side h2 { 
        font-size: 1.1rem; 
    }
}