/* ============================================
   LOGIN STYLES (COMPOSITE LOGO UPDATE)
   ============================================ */

:root {
    --brand-blue: #1e3a8a;
    --brand-blue-dark: #172554;
    --brand-orange: #f97316;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-page: #f8fafc;
    --white: #ffffff;
    --input-border: #cbd5e1;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100%;
    background: var(--white);
}

/* --- LEFT PANEL --- */
.brand-panel {
    flex: 1;
    background: #f1f5f9; /* Clean neutral background (slate-100) so any color graphics stand out perfectly */
    color: var(--brand-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* 1. NEW COMPOSITE LOGO STYLES */
.custom-brand-header {
    text-align: center;
    width: 100%;
    margin-top: -30px;
}

.custom-logo-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.custom-logo-text-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.custom-logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.custom-logo-title {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    line-height: 1;
}

.text-garuda {
    color: var(--brand-blue-dark, #172554);
}

.text-desk {
    color: #b4915a;
}

.custom-logo-tagline {
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.custom-logo-tagline .dot {
    color: #b4915a;
    margin: 0 4px;
}

.custom-logo-icons {
    display: flex;
    gap: 25px;
    color: var(--brand-blue, #1e3a8a);
    font-size: 26px;
}

@media (max-width: 1200px) {
    .custom-logo-img { height: 80px; }
    .custom-logo-title { font-size: 24px; }
    .custom-logo-tagline { font-size: 11px; }
}

@media (max-width: 768px) {
    .custom-logo-img { height: 70px; }
    .custom-logo-title { font-size: 20px; }
    .custom-logo-tagline { font-size: 10px; }
    .custom-logo-icons { font-size: 15px; gap: 10px; }
}

/* Hero Illustration */
.brand-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px 0;
}

.hero-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(30, 58, 138, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Footer Text */
.brand-footer { z-index: 2; }
.brand-footer h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: var(--brand-blue-dark); }
.brand-footer p { font-size: 16px; color: var(--text-secondary); max-width: 400px; line-height: 1.5; margin-bottom: 20px; }

.system-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; padding: 8px 16px; border-radius: 50px;
    font-size: 12px; font-weight: 600; color: #059669;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.dot-pulse { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.circle-bg {
    position: absolute; bottom: -20%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%; z-index: 1;
}

/* --- RIGHT PANEL --- */
.form-panel { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--white); padding: 40px; position: relative; z-index: 10; }
.form-wrapper { width: 100%; max-width: 400px; }

.mobile-logo-show { display: none; margin-bottom: 20px; text-align: center; }

.form-header { margin-bottom: 35px; }
.form-header h2 { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -1px; }
.form-header p { font-size: 15px; color: var(--text-secondary); }

/* Inputs */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }

.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-wrapper input {
    width: 100%; padding: 14px 40px 14px 44px;
    border: 1px solid var(--input-border); border-radius: var(--radius);
    font-size: 14px; color: var(--text-primary); background: #f8fafc;
    transition: all 0.2s ease;
}
.field-icon { position: absolute; left: 16px; color: var(--text-secondary); font-size: 16px; pointer-events: none; }

.input-icon-wrapper input:focus {
    outline: none; background: var(--white); border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.input-icon-wrapper input:focus + .field-icon { color: var(--brand-blue); }

#togglePassword {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 5px;
}
#togglePassword:hover { color: var(--brand-blue); }

/* Buttons */
.btn-primary {
    width: 100%; padding: 16px; background: var(--brand-blue); color: var(--white);
    border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    cursor: pointer; margin-top: 15px; transition: 0.2s;
    box-shadow: 0 10px 20px -5px rgba(30, 58, 138, 0.3);
}
.btn-primary:hover { background: var(--brand-blue-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.alert-box {
    padding: 12px 16px; background: #fee2e2; border: 1px solid #fecaca; color: #b91c1c;
    border-radius: var(--radius); font-size: 13px; margin-bottom: 25px;
    display: flex; align-items: center; gap: 10px;
}

.form-footer { margin-top: 40px; text-align: center; border-top: 1px solid var(--input-border); padding-top: 20px; }
.form-footer p { font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; }
.copyright { font-size: 11px; color: #94a3b8; }

/* Responsive */
@media (max-width: 900px) {
    .brand-panel { display: none; }
    .form-panel { padding: 20px; }
    .mobile-logo-show { display: block; } /* Show simple logo on mobile */
    .form-header { text-align: center; }
}