/* Import font modern dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* =========================================
   1. PENGATURAN LATAR BELAKANG (BODY)
   ========================================= */
body {
    background-color: #050505; /* Dasar hitam pekat ala website premium */
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Mencegah layar geser ke kanan/kiri */
    position: relative;
    z-index: 1;
}

/* =========================================
   2. EFEK CAHAYA AURORA DI LATAR BELAKANG
   ========================================= */
body::before, body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    filter: blur(120px); /* Efek blur ekstrem agar tampak seperti cahaya/asap */
    opacity: 0.6;
    pointer-events: none; /* Agar tidak mengganggu saat form diklik */
}

/* Cahaya Ungu/Pink */
body::before {
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.5) 0%, rgba(0, 0, 0, 0) 40%);
    animation: gerakAurora1 15s ease-in-out infinite alternate;
}

/* Cahaya Biru/Cyan */
body::after {
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.4) 0%, rgba(0, 0, 0, 0) 40%);
    animation: gerakAurora2 20s ease-in-out infinite alternate;
}

@keyframes gerakAurora1 {
    0% { transform: translate(10%, 10%) scale(1); }
    50% { transform: translate(-10%, 20%) scale(1.3); }
    100% { transform: translate(20%, -10%) scale(0.9); }
}

@keyframes gerakAurora2 {
    0% { transform: translate(-20%, -10%) scale(1.2); }
    50% { transform: translate(15%, -20%) scale(0.8); }
    100% { transform: translate(-10%, 10%) scale(1.4); }
}

/* =========================================
   3. HEADER & LOGO
   ========================================= */
header {
    position: relative;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8); /* Efek cahaya pada teks */
}

.logo {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 50px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

/* =========================================
   4. KOTAK FORM PENDAFTARAN (GLASSMORPHISM)
   ========================================= */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-box {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.6), rgba(138, 43, 226, 0.2));
    backdrop-filter: blur(15px); /* Efek kaca transparan */
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    width: 100%;
    max-width: 400px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.form-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(138, 43, 226, 0.5);
}

/* =========================================
   5. INPUT & LABEL
   ========================================= */
.input-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e0d4ff;
    font-weight: 400;
    transition: color 0.3s;
}

.input-group input {
    padding: 14px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    border-color: #b142ff;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(177, 66, 255, 0.5);
    transform: scale(1.02);
}

.input-group input:focus + label,
.input-group:focus-within label {
    color: #b142ff;
    text-shadow: 0 0 5px rgba(177, 66, 255, 0.5);
}

/* =========================================
   6. TOMBOL SUBMIT
   ========================================= */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #8a2be2, #ff007f, #8a2be2);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
    transition: all 0.3s ease;
    animation: gradientMoveBtn 3s ease infinite;
    margin-top: 15px;
}

@keyframes gradientMoveBtn {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 0, 127, 0.6);
}

.btn-submit:active {
    transform: translateY(2px) scale(0.98);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #a39eb5;
}

/* ==========================================
   KODE RESPONSIVE UNTUK HP DAN TABLET
   ========================================== */
@media screen and (max-width: 768px) {
    /* Membuat kotak form dan container menyesuaikan layar HP (tidak mentok pinggir) */
    .container, .login-box, .admin-container, form {
        width: 90% !important; 
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    /* Membuat ukuran huruf judul sedikit mengecil di HP */
    h1, h2, h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    /* Memastikan inputan teks dan tombol tidak keluar jalur */
    input, select, button {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* KHUSUS ADMIN: Membuat tabel bisa digeser (di-scroll) ke kanan/kiri di layar kecil */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}