/* =========================================
   LOGIN & AUTHENTICATION STYLES (REVISI UI SPLIT-SCREEN)
   ========================================= */

/* Latar Belakang Seluruh Halaman */
.auth-body {
    background: #F4F4F5; /* Abu-abu terang agar Card menonjol */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0;
}

/* Wrapper Utama (Kotak Login) */
.auth-wrapper {
    width: 100%;
    max-width: 1100px; /* Diperlebar agar tidak sesak */
    min-height: 650px;
    background: #FFFFFF;
    border-radius: 24px; /* Sudut lebih membulat elegan */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex !important; 
    flex-direction: row !important; /* Memaksa tata letak kiri-kanan */
    overflow: hidden;
}

/* =========================================
   PANEL KIRI (VISUAL / GAMBAR GELAP)
   ========================================= */
.auth-left {
    width: 50%; /* Secara tegas memakan setengah lebar */
    position: relative;
    background: #1A1817; /* Warna gelap dengan hint kecoklatan (mirip referensi) */
    color: #FFF;
    display: flex;
    flex-direction: column;
}

.auth-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5; /* Diredam agar teks jelas */
}

/* Gradasi agar teks bawah selalu terbaca */
.auth-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(26,24,23,0.1) 0%, rgba(26,24,23,0.95) 100%);
    z-index: 1;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 50px; /* Padding diperbesar agar presisi */
}

.auth-logo a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    text-decoration: none;
    letter-spacing: 2px;
}

.auth-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem; /* Ukuran font raksasa ala referensi */
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFF;
}

.auth-text p {
    font-size: 1rem;
    color: #CCC;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Avatar Group (Kiri Bawah) */
.auth-avatars {
    display: flex;
    align-items: center;
    gap: 15px;
}
.avatar-group { display: flex; }
.avatar-group img {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #1A1817;
    margin-left: -12px;
}
.avatar-group img:first-child { margin-left: 0; }
.avatar-text { font-size: 0.85rem; color: #AAA; }


/* =========================================
   PANEL KANAN (FORMULIR PUTIH)
   ========================================= */
.auth-right {
    width: 50%; /* Setengah lebar sisanya */
    background: #FFFFFF;
    padding: 60px 80px; /* Diberi ruang bernapas yang sangat lega */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-form-container {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.auth-form-container.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header { margin-bottom: 30px; }
.auth-header h2 { font-size: 1.8rem; color: #111; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.5px; }
.auth-header p { font-size: 0.95rem; color: #666; }

/* Tombol Google */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFF;
    border: 1px solid #E5E7EB;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.btn-google:hover { background: #F9FAFB; border-color: #D1D5DB; }

/* Divider ATAU */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}
.auth-divider span {
    padding: 0 15px;
    color: #9CA3AF;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Styling Form Minimalis */
.nls-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #111; margin-bottom: 8px; }
.label-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.label-flex label { margin-bottom: 0; }
.forgot-link { font-size: 0.8rem; color: var(--gold-primary); text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

.nls-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #111;
    transition: 0.3s;
}
.nls-form input:focus {
    outline: none;
    border-color: #111; /* Fokus hitam yang tajam */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Tombol Submit */
.btn-submit {
    background: #3A3532; /* Warna kecoklatan elegan ala referensi */
    color: #FFF;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-submit:hover { background: #2A2624; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Switch Text (Di bawah form) */
.auth-switch-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 30px;
}
.btn-switch {
    background: transparent;
    border: none;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}
.btn-switch:hover { text-decoration: underline; }

/* =========================================
   RESPONSIVITAS (LAYAR HP & TABLET)
   ========================================= */
@media (max-width: 992px) {
    .auth-right { padding: 50px 40px; }
    .auth-text h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    /* Mengubah ke mode atas-bawah SAAT DI HP, menyembunyikan panel kiri */
    .auth-wrapper { flex-direction: column !important; min-height: auto; }
    .auth-left { display: none !important; }
    .auth-right { width: 100%; padding: 40px 30px; }
}