/* =========================================
   LOGIN PAGE SPECIFIC STYLES
   ========================================= */

body {
    /* Reset margin/padding standar */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    
    /* Layer 1: Gradasi Hijau Hutan Gelap Transparan */
    /* Layer 2: Gambar Latar Belakang Alam (Nature) */
    background: 
        linear-gradient(135deg, rgba(5, 20, 15, 0.85) 0%, rgba(27, 77, 62, 0.75) 100%),
        url('https://images.unsplash.com/photo-1473448912268-2022ce9509d8?q=80&w=2000&auto=format&fit=crop') no-repeat center center fixed;
    
    background-size: cover; /* Agar gambar memenuhi layar */
    display: flex;
    flex-direction: column;
}
.login-header {
    padding: 20px 0;
    width: 100%;
    z-index: 100;
}

.brand-logo i { font-size: 2rem; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #ffffff; }
.logo-text .gold { color: #d4af37; font-style: italic; }

.header-help .help-link { color: rgba(255,255,255,0.8); transition: 0.3s; }
.header-help .help-link:hover { color: #d4af37; }
.header-help .sep { color: rgba(255,255,255,0.3); }

/* --- HEADER KHUSUS LOGIN --- */
.login-header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menggunakan style logo dari main, tapi disesuaikan jika perlu */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color); /* Warna Hijau Utama */
}

.brand-logo i {
    font-size: 2rem;
    color: #1b4d3e;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b4d3e;
}

.logo-text .gold {
    color: var(--gold-accent);
    font-style: italic;
}

.header-help {
    display: flex;
    align-items: center;
    gap: 15px;
}

.help-link {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.help-link:hover {
    color: var(--primary-color);
}

.header-help .sep {
    color: #ccc;
}

/* --- LOGIN WRAPPER --- */
.login-wrapper {
    flex: 1; /* Agar footer terdorong ke bawah */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* --- 2. LOGIN CARD (GRADASI & GLASS EFFECT) --- */
.login-card {
    width: 100%;
    max-width: 480px;
    
    /* REVISI: Gradasi Pearl White ke Soft Mint (Bukan Putih Polos) */
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 237, 200, 0.9) 100%);
    margin-top: 4rem;
    /* Efek Kaca Buram */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Border Emas Tipis & Shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 40px;
    
    /* Shadow yang dalam agar card "melayang" */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
        
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style tambahan untuk elemen di dalam card agar serasi */
.login-header-text h2 {
    color: #1b4d3e; /* Hijau Tua */
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.tab-btn.active {
    color: #1b4d3e;
    background: linear-gradient(to right, rgba(27, 77, 62, 0.05), transparent);
    border-radius: 8px;
}

/* Input Field lebih "tenggelam" */
.input-group input {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(27, 77, 62, 0.1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}
.input-group input:focus {
    background: #fff;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* Tombol Masuk Gradasi Premium */
.btn-login-main {
    background: linear-gradient(135deg, #1b4d3e 0%, #0f2e22 100%);
    box-shadow: 0 10px 20px rgba(15, 46, 34, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-login-main:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b4d3e 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 46, 34, 0.4);
}



/* --- TABS --- */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active {
    color: #1b4d3e;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-accent);
    border-radius: 3px 3px 0 0;
}

/* --- TAB CONTENT --- */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- FORM STYLING --- */
.login-header-text h2 {
    font-family: 'Playfair Display', serif;
    color: #1b4d3e;
    margin-bottom: 5px;
}

.login-header-text p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 20px 14px 45px; /* Space for icon */
    border: 1px solid rgba(0,0,0,0.1);
    background: #f9f9f9;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: 0.3s;
    outline: none;
    color: #333;
}

.input-group input:focus {
    border-color: var(--gold-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
}

.show-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.remember-me {
    color: #555;
    cursor: pointer;
}

.forgot-pass {
    color: #1b4d3e;
    font-weight: 600;
}

.btn-login-main {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1b4d3e 0%, #0f2e22 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(27, 77, 62, 0.4);
}

/* --- DIVIDER --- */
.show-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer; /* Wajib ada agar terlihat bisa diklik */
    z-index: 10;     /* Memastikan icon berada di atas layer input */
    transition: 0.3s;
}

.show-pass:hover {
    color: #1b4d3e; /* Ubah warna saat di-hover agar interaktif */
}
/* =========================================
   DIVIDER & SOCIAL BUTTONS STYLES
   ========================================= */

/* --- 1. DIVIDER (Garis Pemisah Modern) --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #666; /* Warna teks abu-abu lembut */
    font-size: 0.85rem;
    font-weight: 500;
}

/* Membuat garis di kiri dan kanan teks secara otomatis */
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Garis transparan halus */
}

.divider::before {
    margin-right: 15px; /* Jarak garis ke teks kiri */
}

.divider::after {
    margin-left: 15px; /* Jarak garis ke teks kanan */
}

/* --- 2. SOCIAL LOGIN GRID --- */
.social-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Membagi 3 kolom sama rata */
    gap: 12px; /* Jarak antar tombol */
    margin-bottom: 25px;
}

/* --- 3. TOMBOL SOCIAL --- */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Jarak ikon ke teks */
    padding: 12px 10px;
    
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Border abu tipis */
    border-radius: 10px; /* Sudut membulat */
    
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efek Hover (Saat kursor diarahkan) */
.btn-social:hover {
    background-color: #fff;
    border-color: #d4af37; /* Border berubah jadi emas saat hover */
    transform: translateY(-3px); /* Tombol naik sedikit */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Bayangan halus */
}

/* Warna Spesifik Icon Brand */
.btn-social.google i { color: #DB4437; font-size: 1.1rem; }
.btn-social.facebook i { color: #4267B2; font-size: 1.1rem; }
.btn-social.twitter i { color: #1DA1F2; font-size: 1.1rem; }

/* --- RESPONSIF (Untuk Layar HP Kecil) --- */
@media (max-width: 480px) {
    .social-login-grid {
        /* Di HP, tombol ditumpuk ke bawah agar mudah ditekan */
        grid-template-columns: 1fr; 
    }
}
/* --- REGISTER LINK --- */
.register-link {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.register-link a {
    color: #1b4d3e;
    font-weight: 700;
    text-decoration: underline;
}

/* --- QR CODE SECTION --- */
.qr-container {
    text-align: center;
    padding: 20px 0;
}

.qr-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #1b4d3e;
    background: white;
    padding: 10px;
}

.qr-box img {
    width: 100%;
    height: 100%;
}

/* Animasi Scan Line */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--gold-accent);
    box-shadow: 0 0 10px var(--gold-accent);
    top: 0;
    left: 0;
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.qr-container h3 {
    font-family: 'Playfair Display', serif;
    color: #1b4d3e;
    margin-bottom: 10px;
}

.qr-steps {
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.step {
    font-size: 0.75rem;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.step i {
    font-size: 1.2rem;
    color: var(--gold-accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 80px 15px 40px;
    }
    .login-card {
        padding: 30px 20px;
    }
    .social-login-grid {
        grid-template-columns: 1fr; /* Stack buttons on mobile */
    }
}