:root {
--bg-deep: #050505;
--box-dark: #121212;
--gold-solid: #D4AF37;
--gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #AA771C 100%);
--text-light: #94A3B8;
}

/* PENTING: Reset asas untuk keselamatan saiz */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-deep);
    margin: 0;
    display: flex;
    flex-direction: column; /* KUNCI UTAMA: Susun atas ke bawah */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; 
}

/* --- BUTANG KEMBALI --- */
.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: all 0.3s;
}
.back-btn:hover { 
    opacity: 1; 
    color: var(--gold-solid); 
}

.admin-box {
    background-color: var(--box-dark);
    width: 100%;
    max-width: 380px;
    padding: 40px; /* Padding asal desktop */
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

.admin-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gold-gradient);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.admin-box img { height: 120px; margin-bottom: -10px; margin-left: -10px; opacity: 0.8; filter: grayscale(0%); transition: 0.3s; }
.admin-box:hover img { filter: grayscale(0%); opacity: 1; }

.admin-box h2 {
    font-size: 1.2em;
    color: #E2E8F0;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-box p { color: var(--text-light); font-size: 0.8em; margin-bottom: 30px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: #64748B; font-size: 0.75em; margin-bottom: 8px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #0A0A0A;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    transition: all 0.3s;
}
.input-group input:focus { outline: none; border-color: var(--gold-solid); background-color: #000; }

.submit-btn {
    background: #222;
    color: var(--gold-solid);
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.submit-btn:hover { background: var(--gold-solid); color: #000; border-color: var(--gold-solid); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#errorMsg { color: #EF4444; font-size: 0.8em; margin-top: 15px; display: none; background: rgba(239, 68, 68, 0.1); padding: 10px; border-radius: 5px; border: 1px solid rgba(239, 68, 68, 0.2); }

/* ===================================================
MEDIA QUERY: AUTOMATIK KECILKAN ELEMEN DI MOBILE
=================================================== */
@media (max-width: 480px) {
    .back-btn {
        position: static; 
        margin-bottom: 20px;
        align-self: flex-start;
    }
    .admin-box {
        padding: 30px 20px;
        width: 100%;
    }
    .admin-box h2 { font-size: 1.05em; }
    .admin-box p { font-size: 0.75em; margin-bottom: 20px; }
    .input-group input { padding: 10px 12px; font-size: 0.85em; } /* Saiz kotak menaip lebih kompak */
    .submit-btn { padding: 10px; font-size: 0.85em; }
}
