/* --- RESET & BASIC --- */
body {
    background-color: #2e1a47; 
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background-image: url('https://www.transparenttextures.com/patterns/black-thread-light.png');
    background-attachment: fixed;
    overflow-x: hidden; /* Mencegah geser kanan-kiri yang mengganggu */
}

/* --- HEADER & LOGO --- */
header {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo {
    width: 100%;
    max-width: 280px; /* Ukuran pas untuk Desktop & HP */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.slogan {
    color: #ffd700;
    font-size: 1rem;
    font-style: italic;
    margin-top: 10px;
    padding: 0 15px;
}

/* --- LAYOUT UTAMA --- */
.main-layout {
    display: flex;
    justify-content: center;
    padding: 10px;
}

/* --- KOTAK FORM (REVISI TOTAL) --- */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #ffd700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;           /* Fleksibel mengikuti layar */
    max-width: 400px;      /* Batas maksimal di Laptop */
    backdrop-filter: blur(8px);
    box-sizing: border-box; /* WAJIB: agar padding tidak nambah lebar */
}

h2 {
    color: #ffd700;
    text-align: center;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
}

/* --- STYLE INPUT FORM --- */
form input, form select {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    box-sizing: border-box; /* Agar input tidak keluar kotak */
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #5d3a8a;
    border-radius: 8px;
    color: white;
    font-size: 16px; /* Ukuran ideal agar HP tidak auto-zoom */
}

/* --- TOMBOL --- */
button[type="submit"] {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #2e1a47;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* --- RESPONSIVE MOBILE (KHUSUS HP) --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-section {
        padding: 20px 15px; /* Padding lebih kecil agar konten tidak sesak */
    }

    h2 {
        font-size: 1.1rem;
    }

    .main-logo {
        max-width: 200px; /* Logo lebih proporsional di HP */
    }
}