:root {
    /* Palette Logo */
    --brand-blue: #00a8ff;
    --brand-gold: #fbc531;
    --brand-green: #4cd137;
    
    /* --- BACKGROUND UTAMA --- */
    --bg-surface: #0f1215; /* Background body sangat gelap */
    
    /* --- UPDATE: FORM SIDE DARK PALETTE --- */
    --card-bg-dark: #1e272e;      /* Warna background kartu form (Dark Blue-Grey) */
    --input-bg-dark: #13171c;     /* Warna input lebih gelap dari kartu */
    --text-main: #f5f6fa;         /* Warna teks utama (Putih gading) */
    --text-muted: #a4b0be;        /* Warna teks pudar (Abu-abu soft) */
    --border-subtle: #2f3640;     /* Border halus */

    /* Warna Tombol (Sesuai Request) */
    --btn-soft-bg: #3CABDA;        
    --btn-soft-hover: #3598c2;
    
    /* Gradient Logo */
    --brand-gradient: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-gold) 50%, var(--brand-green) 100%);
}

body {
    background-color: var(--bg-surface);
    /* Pattern grid halus agar background tidak kosong melompong */
    background-image: radial-gradient(#2f3640 1px, transparent 1px);
    background-size: 40px 40px;
    
    /* PERUBAHAN DISINI: Menggunakan Plus Jakarta Sans sesuai head */
    font-family: 'Plus Jakarta Sans', sans-serif;
    
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Container Utama */
.auth-container {
    /* Background container disamakan dengan form side agar seamless */
    background: var(--card-bg-dark); 
    width: 100%;
    max-width: 900px; 
    border-radius: 24px; 
    /* Shadow dibuat glow sedikit */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
               0 0 0 1px rgba(255, 255, 255, 0.05); 
    overflow: hidden;
    display: flex;
    min-height: 500px;
    position: relative;
}

/* PANEL KIRI (Visual - Tetap Sama) */
.brand-side {
    flex: 1; 
    background: #2f3640; /* Base color sisi kiri */
    position: relative;
    padding: 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    overflow: hidden;
    z-index: 1;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--brand-gradient);
    opacity: 0.15;
    z-index: -1;
}

/* Bentuk Organik */
.organic-shape {
    position: absolute;
    filter: blur(50px);
    z-index: -1;
    opacity: 0.6;
}
.os-1 {
    width: 250px; height: 250px;
    background: var(--brand-blue);
    top: -80px; left: -40px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
}
.os-2 {
    width: 200px; height: 200px;
    background: var(--brand-green);
    bottom: -40px; right: -40px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite reverse;
}

@keyframes morph {
    0% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
}

.brand-content { position: relative; z-index: 2; }

.logo-area {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.brand-tagline h2 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
}

.brand-tagline::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background: var(--brand-gold);
    border-radius: 3px;
    margin-top: 15px;
}

.brand-desc {
    margin-top: 20px;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 90%;
    font-size: 0.95rem;
}

/* --- PANEL KANAN (Form - SEKARANG GELAP) --- */
.form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Update background ke gelap */
    background: var(--card-bg-dark);
    color: var(--text-main);
}

.form-title h4 {
    font-weight: 700;
    color: var(--text-main); /* Judul Putih */
    margin-bottom: 5px;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.form-title p {
    color: var(--text-muted); /* Subjudul Abu Soft */
    font-size: 0.85rem;
    margin-bottom: 0;
    font-weight: 300;
}

/* Input Styling Estetik Dark */
.input-wrapper {
    margin-bottom: 20px;
}

.input-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main); /* Label Putih */
    opacity: 0.9;
}

.custom-input {
    width: 100%;
    padding: 12px 16px;
    /* Background input sangat gelap agar kontras dengan kartu */
    background: var(--input-bg-dark); 
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white; /* Teks input putih */
}

.custom-input::placeholder {
    color: #57606f; /* Placeholder gelap */
}

.custom-input:focus {
    outline: none;
    border-color: var(--btn-soft-bg);
    /* Glow efek saat fokus */
    box-shadow: 0 0 0 4px rgba(60, 171, 218, 0.1); 
    background: #000; /* Sedikit lebih gelap saat fokus */
}

.password-container { position: relative; }

.toggle-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.toggle-icon:hover { color: var(--btn-soft-bg); }

/* --- BUTTON STYLE --- */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--btn-soft-bg);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0, 0.2); /* Shadow disesuaikan mode gelap */
}

.btn-login:hover {
    background: var(--btn-soft-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(60, 171, 218, 0.2);
}

/* Checkbox & Link */
.form-check-input {
    background-color: var(--input-bg-dark);
    border-color: var(--border-subtle);
}
.form-check-input:checked {
    background-color: var(--btn-soft-bg);
    border-color: var(--btn-soft-bg);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        max-width: 450px;
        min-height: auto;
    }
    .brand-side {
        padding: 30px;
        min-height: 180px;
        text-align: center;
        align-items: center;
    }
    .brand-tagline::after { margin: 15px auto 0 auto; }
    .brand-desc { display: none; }
    .brand-tagline h2 { font-size: 1.8rem; }
    .form-side { padding: 30px; }
}

/* --- CUSTOM MODAL STYLES (Tambahkan di paling bawah index.css) --- */

/* Overlay Gelap di seluruh layar */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 18, 21, 0.9); /* Transparansi gelap */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px); /* Efek blur background belakang modal */
    animation: fadeIn 0.3s ease-out;
}

/* Kotak Modal */
.custom-modal-box {
    background: var(--card-bg-dark);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Icon Centang dengan lingkaran */
.success-icon-animate {
    width: 80px; height: 80px;
    background: rgba(76, 209, 55, 0.15); /* Hijau transparan */
    color: var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
    border: 2px solid var(--brand-green);
    box-shadow: 0 0 20px rgba(76, 209, 55, 0.3);
}

.custom-modal-box h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.custom-modal-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Loading Bar Container */
.loading-bar-container {
    width: 100%;
    height: 6px;
    background: var(--input-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

/* Loading Bar Fill Animation */
.loading-bar-fill {
    height: 100%;
    background: var(--brand-gradient); /* Menggunakan gradient brand */
    width: 0%;
    border-radius: 10px;
    animation: loadProgress 2.5s ease-in-out forwards;
}

.redirect-text {
    font-size: 0.8rem;
    color: #57606f;
    font-style: italic;
}

/* Animasi Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    to { transform: scale(1); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}