/* --- VARIABLES --- */
:root {
    --primary-color: #1b4d3e; 
    --gold-accent: #d4af37;
    --text-dark: #2c3e50;
    --text-light: #f5f6fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --header-bg-gradient: linear-gradient(90deg, #0f3d2e 0%, #1b4d3e 50%, #143d30 100%);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Tombol Gradient */
    --btn-grad: linear-gradient(135deg, #1b4d3e 0%, #2e7d32 100%);
}

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

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;
}

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER --- */
.main-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg-gradient);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    /* ... style lainnya ... */
}

/* Pastikan input tidak menutupi icon */
.input-wrapper input {
    width: 100%;
    padding-right: 45px; /* Beri ruang di kanan agar teks tidak menabrak icon */
}

/* Style untuk tombol mata */
.toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer; /* PENTING: Agar kursor berubah jadi tangan saat di-hover */
    color: #90a4ae;
    z-index: 10; /* PENTING: Agar icon berada di layer paling atas */
    padding: 5px; /* Memperluas area klik */
    transition: 0.3s;
}

.toggle-pass:hover {
    color: var(--primary-color);
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.8rem;
}

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

.header-actions { display: flex; gap: 15px; }

.help-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.help-btn:hover { background: var(--gold-accent); color: #0f2e22; border-color: var(--gold-accent); }
.help-btn.outline { background: transparent; }
.help-btn.outline:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; }


/* --- AUTH SECTION --- */
.auth-section {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

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

/* Auth Header */
.auth-header { margin-bottom: 35px; }

.icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-circle.warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 2px solid #ffe0b2;
}

.icon-circle.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #c8e6c9;
}

.auth-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    font-size: 0.9rem;
    color: #546e7a;
    line-height: 1.5;
}

/* Form Styles */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #455a64;
    margin-bottom: 8px;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: white;
    transition: 0.3s;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

.input-icon {
    padding: 0 15px;
    color: #90a4ae;
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 0;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    font-family: var(--font-body);
}

.status-icon, .toggle-pass {
    padding: 0 15px;
    color: #b0bec5;
    cursor: pointer;
}

/* Button */
.btn-auth {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: var(--btn-grad);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.2);
    position: relative;
    margin-top: 10px;
}

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

.btn-loader { display: none; }
.btn-auth.loading .btn-text { display: none; }
.btn-auth.loading .btn-loader { display: block; font-size: 1.2rem; }

/* Footer Link */
.auth-footer-link {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #78909c;
}
.auth-footer-link a {
    color: var(--primary-color);
    font-weight: 600;
}
.auth-footer-link a:hover { text-decoration: underline; color: var(--gold-accent); }


/* --- FOOTER CSS (Sama seperti sebelumnya) --- */
.main-footer {
    background: linear-gradient(to bottom, #0f3d2e 0%, #05140f 100%);
    color: #b0bec5;
    padding-top: 70px;
    font-size: 0.9rem;
    border-top: 4px solid var(--gold-accent);
}
/* ... (Gunakan CSS Footer lengkap dari jawaban sebelumnya) ... */
/* Untuk ringkas, CSS footer tidak saya copy ulang sepenuhnya di sini agar tidak duplikat.
   Anda bisa menggunakan CSS footer yang sudah ada di file style utama Anda. */

/* Responsive */
@media (max-width: 480px) {
    .glass-card { padding: 40px 20px; }
    .icon-circle { width: 70px; height: 70px; font-size: 1.6rem; }
    .auth-header h2 { font-size: 1.5rem; }
}


.main-footer {
    /* Gradasi Premium: Hijau Hutan Gelap ke Hitam Soft */
    background: linear-gradient(to bottom, #0f3d2e 0%, #05140f 100%);
    color: #b0bec5;
    padding-top: 70px;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 4px solid var(--gold-accent); /* Aksen Emas di atas footer */
}

/* GRID 4 KOLOM */
.footer-grid {
    display: grid;
    /* KUNCI: Memaksa tepat 4 kolom sama besar */
    grid-template-columns: repeat(4, 1fr); 
    gap: 50px; /* Jarak antar kolom lega */
    margin-bottom: 60px;
}

/* Styling Tiap Kolom */
.footer-col h3 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Logo Loopia di Footer */
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer-logo .gold { color: var(--gold-accent); font-style: italic; }

/* Styling List Menu */
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #b0bec5;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 300;
}
.footer-col ul li a:hover {
    color: var(--gold-accent);
    padding-left: 5px; /* Efek geser sedikit saat hover */
}

/* Contact List Icons */
.contact-list li {
    display: flex;
    gap: 10px;
    align-items: center;
}
.contact-list i { color: var(--gold-accent); width: 20px; }

/* Social Icons */
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}
.social-links a:hover {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: #05140f;
    transform: translateY(-3px);
}

/* Payment Logos Grid */
.payment-methods-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 logo per baris kecil */
    gap: 10px;
}
.payment-methods-logos img {
    width: 100%;
    background: white;
    padding: 4px;
    border-radius: 4px;
    height: auto;
}



/* --- FOOTER BOTTOM SECTION --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
}

/* Baris Atas Bottom (Copyright & Links) */
.footer-bottom-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-links .sep { color: rgba(255,255,255,0.2); }
.footer-links a:hover { color: var(--gold-accent); }

/* --- BAGIAN NEGARA (BARU) --- */
.footer-countries {
    display: flex;
    justify-content: center; /* Rata tengah agar elegan */
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.1); /* Pemisah garis putus-putus halus */
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.country-label {
    font-weight: bold;
    color: #fff;
    margin-right: 5px;
}

.country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.country-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding-right: 15px;
    position: relative;
    transition: 0.2s;
}

/* Garis pemisah antar negara */
.country-list a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: rgba(255,255,255,0.2);
}

.country-list a:hover {
    color: var(--gold-accent);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet jadi 2 kolom */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* HP jadi 1 kolom */
        text-align: center;
    }
    .footer-bottom-top {
        flex-direction: column;
        text-align: center;
    }
    .social-links, .contact-list li {
        justify-content: center;
    }
    .payment-methods-logos {
        max-width: 200px;
        margin: 0 auto;
    }
}