/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* Style untuk Toast */
#toast-container {
    visibility: hidden;
    min-width: 200px;
    background-color: rgba(0, 0, 0, 0.8); /* Hitam Transparan */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    font-size: 14px;
    transition: visibility 0s, opacity 0.5s linear;
    opacity: 0;
}

#toast-container.show {
    visibility: visible;
    opacity: 1;
}

input[type="checkbox"] {
    accent-color: #109B3E;
    width: 14px;
    height: 14px;
    cursor: pointer; /* Opsional: agar muncul ikon tangan saat disentuh */
}

/* Background Gradasi */
.hero-section {
    background: linear-gradient(180deg, #109B3E 0%, #A7E9BD 100%);
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    color: white;
    text-align: center;
}

/* Responsif Tinggi PC */
@media (min-width: 768px) {
    .hero-section {
        height: 400px;
    }
}

/* Gambar Bola Dunia */
.bg-world {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    opacity: 0.4;
    pointer-events: none;
}

@media (min-width: 768px) {
    .bg-world {
        width: 400px;
    }
}

/* Header & Logo */
.header-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-img {
    height: 50px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

/* Menu Button */
.menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-btn svg {
    width: 50px;
    height: 50px;
}

/* Hero Text & Button */
.hero-content {
    margin-top: 24px;
    z-index: 10;
}

.hero-content h2 {
    font-size: 1.25rem;
    /*font-weight: bold;*/
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-content h2 {
        font-size: 1.75rem;
    }
}

.btn-get-started {
    background-color: white;
    color: #2ecc71;
    padding: 15px 32px;
    border-radius: 9999px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
}

.btn-get-started:hover {
    transform: translateY(-3px);
}

.btn-get-started:active {
    transform: scale(0.85);
}


/* Kotak Putih Melayang */
.form-card {
    position: absolute;
    top: 320px;
    background-color: white;
    color: #374151;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 92%;
    max-width: 600px;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .form-card {
        top: 300px;
    }
}

.form-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6b7280;
    letter-spacing: 0.025em;
}

/* Inputs */
.input-main {
    width: 100%;
    border: 2px solid #969BA7;
    border-radius: 9999px;
    padding: 12px 20px;
    margin-bottom: 16px;
    outline: none;
    transition: 0.3s;
    color: #374151;
}

.input-main:focus {
    border-color: #109B3E;
    color: #374151;
}

/* Checkbox & Logic */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    margin-bottom: 4px;
}

.checkbox-custom {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #109B3E;
}

.label-text {
    font-size: 14px;
    cursor: pointer;
}

#passWrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.line-separator {
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.terms-text {
    font-size: 12px;
    line-height: 1.2;
    color: #4b5563;
    cursor: pointer;
}

.agreement-link {
    color: #2ecc71; /* Warna hijau khas Atshort.link */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #15803d; /* Warna hijau sedikit gelap saat disentuh/hover */
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    max-width: 300px;
    background-color: #109B3E;
    color: white;
    font-weight: bold;
    padding: 16px;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
    margin-top: 16px;
}

.btn-submit:active {
    transform: scale(0.90);
}

.info-container {
    max-width: 800px;
    margin: 300px auto 10px auto;
    padding: 0 20px;
    max-height: 999999px; /* Penting untuk Chrome HP */
}

.info-item {
    margin-bottom: 50px;
}

.info-heading {
    color: #6b7280;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-left: 5px solid #2ecc71;
    padding-left: 15px;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.info-image {
    flex: 0 0 160px;
    width: 160px;
    height: auto;
    border-radius: 12px;
}

.info-text {
    flex: 1;
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* RESPONSIVE KHUSUS HP */
@media (max-width: 650px) {
    .info-container {
        margin-top: 320px;
    }
    .info-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-image {
        width: 100%;
        max-width: 280px;
    }
    .info-heading {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 50;
    box-shadow: -10px 0 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    padding: 24px;
    text-align: left;
}

.close-btn {
    color: #2ecc71;
    font-size: 2.25rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Bagian Menu Sidebar Baru --- */
.menu-auth-group {
    display: flex;
    justify-content: center; /* Posisi ke tengah */
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 30px;
    width: 100%;
}

.btn-login-menu {
    color: #16a34a;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #16a34a; /* Border hijau */
    transition: 0.3s;
}

.btn-login-menu:hover {
    background-color: #f0fdf4;
}

.btn-signup-menu {
    background: #16a34a;
    color: white;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-signup-menu:hover {
    background-color: #15803d;
}

.menu-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left; /* Teks link tetap rata kiri agar profesional */
}

.menu-links a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.menu-links a:hover {
    color: #15803d;
    padding-left: 5px; /* Efek geser sedikit saat hover */
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 40;
  }

/* --- Tambahan Fitur Show Password --- */

.password-container {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

.password-input {
    padding-right: 50px !important; /* Agar teks tidak menabrak ikon mata */
    margin-bottom: 0 !important;
}

.eye-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.password-input-signup {
    padding-right: 50px !important; /* Agar teks tidak menabrak ikon mata */
    margin-bottom: 0 !important;
}

.eye-icon {
    width: 22px;
    height: 22px;
    transition: color 0.3s;
}

.hidden {
    display: none;
}

.site-footer {
  width: 100%;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.8); /* Transparan putih yang elegan */
  border-top: 1px solid #e0e0e0;
  margin-top: 60px;
  box-shadow: 0 1000px 0 1000px #ffffff;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.footer-copyright {
  margin-bottom: 20px;
}

.footer-copyright p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
}

.copy-link {
  text-decoration: none;
  color: #27ae60; /* Hijau khas Atshort.link */
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px; /* Jarak antar menu */
  flex-wrap: wrap; /* Supaya otomatis turun jika layar HP terlalu kecil */
}

.footer-link {
  text-decoration: none;
  color: #2ecc71; /* Hijau khas Atshort.link */
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #27ae60;
  text-decoration: underline;
}

/* Warna Merah khusus untuk Report agar terlihat sebagai pengaduan penting */
.report-accent {
  color: #e74c3c;
}

.report-accent:hover {
  color: #c0392b;
}

/* Optimalisasi untuk HP */
@media (max-width: 480px) {
  .site-footer {
    margin-top: 0;
  }
  .footer-nav {
    gap: 15px; /* Jarak lebih rapat di HP agar tetap sejajar */
  }
  .footer-link {
    font-size: 0.8rem;
  }
}

/* Container pembungkus agar card berada di tengah */
.legal-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f9fafb; /* Warna latar belakang lembut agar kotak putih terlihat menonjol */
}

/* Kotak Putih Melayang (Gaya Formcard) */
.legal-card {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Shadow halus agar melayang */
    text-align: left; /* Memastikan semua teks rapat kiri */
    max-height: 999999px;
}

/* Container Judul di dalam Hero */
.legal-header {
    width: 100%;
    text-align: center; /* Rata tengah */
    margin: 100px auto 30px auto; /* Jarak dari logo dan ke card */
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* Judul Utama */
.legal-main-title {
    color: #ffffff; /* Warna Putih */
    font-size: 2.8rem; /* Ukuran lebih besar */
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center; /* Tetap rata tengah */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Bayangan agar terbaca jelas */
}

/* Tanggal */
.legal-date {
    color: rgba(255, 255, 255, 0.85); /* Putih sedikit transparan */
    font-size: 16px;
    font-style: italic;
    text-align: center; /* Rata tengah */
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Penyesuaian di HP (Oppo A5s) */
@media (max-width: 640px) {
    .legal-main-title {
        font-size: 2rem; /* Mengecil di HP agar tidak patah */
    }
    
    .legal-header {
        margin: 100px auto 20px auto;
    }
}

/* Section Poin-Poin */
.legal-section {
    margin-bottom: 25px;
}

.legal-sub-title {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 10px;
    text-align: left; /* Rapat kiri di PC & HP */
    border-left: 5px solid #2ecc71;
    padding-left: 15px;
}

.legal-text {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    text-align: left; /* Rapat kiri di PC & HP */
}

/* Responsif Mobile (Oppo A5s) */
@media (max-width: 640px) {
    .legal-wrapper {
        padding: 20px 15px;
    }

    .legal-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .legal-text {
        font-size: 14px;
    }
}

/* --- Join Us Section --- */
.join-section {
    width: 100%;
    padding: 30px 0;
    background-color: #f9fafb;  
    display: flex;
    justify-content: center;
    padding: 30px 20px 10px 20px; 
    box-sizing: border-box;
}

.join-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    max-height: 999999px;
    box-sizing: border-box;
}

.join-title {
    font-size: 2.2rem; /* Ukuran pas untuk judul utama */
    color: #6b7280;
    margin-bottom: 20px;
    font-weight: 800;
}

.join-divider {
    width: 50px;
    height: 2px;
    background-color: #2ecc71; /* Saya ubah jadi hijau agar lebih menarik */
    margin: 0 auto 25px auto;
}

.join-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 35px auto;
    font-style: italic;
}

.btn-signup-action {
    display: inline-block;
    background-color: #109B3E; 
    color: #ffffff;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.btn-signup-action:hover {
    transform: translateY(-3px);
}

.btn-signup-action:active {
    transform: scale(0.90);
}


/* Penyesuaian Mobile (Oppo A5s) */
@media (max-width: 640px) {
    .join-section {
        /* Memberikan jarak 15px-20px dari tepi layar HP */
        padding: 30px 20px 50px 20px; 
    }
    
    .join-container {
        padding: 40px 20px;
    }

    .join-title {
        font-size: 1.6rem;
    }

    .join-text {
        font-size: 14px;
    }
}

/* --- Modal Layout Signup --- */
.modal-overlay-signup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
}

.modal-box-signup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 20px; /* Lebih rounded sesuai Gambar 1 */
    z-index: 9999;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.modal-overlay-signup.active, .modal-box-signup.active { display: block; }

.modal-close-btn-signup {
    position: absolute;
    top: 5px; right: 15px;
    background: none; border: none;
    font-size: 35px; cursor: pointer; color: #aaa;
    padding: 0 10px 10px 10px;
}

.modal-title-signup {
    text-align: center; 
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #6b7280;
    letter-spacing: 0.025em;
}

/* --- Tab Peringatan Melayang (Gambar 2) --- */
.red-warning-text-signup {
    color: #fff; 
    background: #ff4d4d;
    padding: 5px 10px; 
    border-radius: 10px;
    font-size: 12px;
    display: none; 
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    border-left: 5px solid #b30000;
}

/* --- Floating Label Signup --- */
.input-group-signup { position: relative; margin-bottom: 10px; }

.form-input-signup {
    width: 100%; padding: 14px;
    border: 2.5px solid #969BA7; border-radius: 9999px;
    outline: none; font-size: 15px;
    transition: 0.3s; background: transparent;
}

.form-label-signup {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    background: white; padding: 0 6px;
    color: #aaa; transition: 0.3s;
    pointer-events: none;
}

.form-input-signup:focus + .form-label-signup,
.form-input-signup:not(:placeholder-shown) + .form-label-signup {
    top: 0; font-size: 12px; color: #109B3E; font-weight: bold;
}

.form-input-signup:focus { border-color: #109B3E; background: #fff; }

/* --- Eye Button Signup --- */
.eye-btn-signup {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #bbb;
}
.eye-icon-signup { width: 22px; height: 22px; }
.hidden-signup { display: none; }
/* Memberikan warna hijau pada ikon mata saat aktif di modal signup */
.active-eye {
    color: #109B3E !important;
}

/* Memastikan ikon SVG di dalamnya ikut berubah warna */
.active-eye .eye-icon-signup {
    color: #109B3E;
}


/* --- Button Signup --- */
.btn-submit-signup {
    width: 100%; padding: 14px;
    background: #109B3E; color: white;
    border: none; border-radius: 50px;
    font-size: 16px; font-weight: bold; 
    cursor: pointer; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(16, 155, 62, 0.3);
}
.btn-submit-signup:active { transform: scale(0.98); }

.terms-group-signup { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.terms-text-signup { font-size: 12px; color: #777; line-height: 1.4; }
