/* ================================================= */
/* ==   FULL SCRIPT: style_login_admin.css        == */
/* ==   (Disesuaikan agar sama dengan login siswa)  == */
/* ================================================= */

/* --- Pengaturan Dasar & Latar Belakang --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px 0;
    
    /* Latar belakang putih keabuan (agar kartu login menonjol) */
    background-color: #f4f7f6;
    color: #333; /* Warna teks default gelap */
    
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menengahkan konten secara vertikal */
}

/* Animasi fade-in */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mengatur Ulang Elemen CSS Lama --- */

/* Menghilangkan gambar di samping */
.posisi_gambar {
    display: none;
}

/* Mereset form dan class .login di dalam .container */
.container .login,
.container form {
    width: 100%;
    margin: 0;
}

/* Menghilangkan label (tidak dipakai di desain baru) */
.container form label {
    display: none;
}

/* Menghilangkan garis <hr> */
hr {
    display: none;
}

/* --- Kotak Login Utama --- */
/* Kita target .container (pembungkus utama admin) */
.container {
    background: #ffffff; /* Kartu login putih bersih */
    border-radius: 10px;
    padding: 40px 50px;
    width: 360px;
    max-width: 90%;
    margin: 2vh auto; /* Jarak atas/bawah otomatis */
    
    /* Bayangan (shadow) yang modern dan halus */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0; /* Garis tepi tipis */
    
    /* Panggil animasi fade-in */
    animation: fade-in 0.8s ease-out;

    /* Override CSS lama */
    display: block; /* Bukan flex */
}

/* --- Logo di Dalam Kotak --- */
.container img {
    width: 70px;
    height: 70px;
    display: block;
    margin: 0 auto 25px auto;
}

/* --- Teks Judul --- */
/* Menargetkan h2 dan h3 dari CSS lama */
.container h2,
.container h3 {
    color: #222; /* Hitam pekat */
    text-align: center;
    font-weight: 600; /* Sedikit tebal */
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 30px;
    /* Override CSS lama */
    text-transform: none; 
}

/* --- Kolom Input (Username & Password) --- */
/* Menargetkan semua <input> di dalam form */
.container form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    
    background: #f9f9f9; /* Latar input sedikit abu-abu */
    border: 1px solid #ddd;
    border-radius: 8px;
    
    color: #333;
    font-size: 16px; /* Menyamakan dari 15pt */
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

/* --- Teks Placeholder (di dalam input) --- */
.container input::placeholder {
    color: #999;
    opacity: 1;
}

/* --- Efek saat Input di-klik (Fokus) --- */
.container input:focus {
    outline: none;
    border-color: #007bff; /* Garis tepi jadi biru */
    background: #fff;
    /* Efek glow biru */
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1); 
}

/* --- "Tampilkan Password" & Checkbox --- */
/* (Jika Anda menambahkannya di admin, gayanya akan sama) */
.container div:has(input[type="checkbox"]) {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 25px;
}

.container input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #007bff; /* Warna centang biru */
    /* Reset dari CSS lama */
    width: auto; 
    border: none;
    padding: 0;
}

/* --- Tombol "LOGIN" --- */
/* Menargetkan tag <button> dari HTML admin */
.container button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    
    /* Tombol dengan warna aksen Biru */
    background: #007bff;
    color: #ffffff; 
    
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px; /* Jarak dari atas */
}

/* --- Efek Hover pada Tombol "LOGIN" --- */
.container button:hover {
    background: #0056b3; /* Biru lebih gelap */
    transform: translateY(-2px); /* Sedikit terangkat */
    box-shadow: 0 4px 10px rgba(0,123,255,0.2);
}

.container button:active {
    transform: translateY(0); /* Efek ditekan */
    box-shadow: none;
}

/* --- Teks di LUAR Kotak Login --- */
/* (Hanya untuk jaga-jaga, tidak akan terpakai jika HTML admin tidak punya footer) */
h2, footer p, footer i {
    color: #777; /* Warna abu-abu */
    text-align: center;
    padding: 0 15px;
}

h2 {
    font-weight: 500;
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

footer {
    padding-bottom: 20px;
    margin-top: 20px;
}