/* =====================================================
   LOGIN PAGE - SMP IT ANDALUSIA
   Tema: Biru Dongker + Putih
   ===================================================== */

body {
    background: #0a1e3f;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    padding: 20px;
}

.login-card {
    max-width: 440px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
    overflow: hidden;
    border: none;
    background: #ffffff;
}

/* HEADER */
.login-header {
    text-align: center;
    padding: 35px 25px 25px;
    background: #0a1e3f;
    border-bottom: 4px solid #ffffff;
    position: relative;
}

//* =====================================================
   LOGO SEKOLAH — PAKSA BULAT PAKAI FRAME
   ===================================================== */
.logo-sekolah {
    /* FRAME LINGKARAN — ukuran fix */
    width: 100px;
    height: 100px;
    min-width: 100px;
    max-width: 100px;
    min-height: 100px;
    max-height: 100px;

    /* Paksa jadi lingkaran */
    border-radius: 50%;
    overflow: hidden;              /* POTONG apapun yang keluar */

    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    padding: 0;                    /* Jangan ada padding di frame */
    background: #ffffff;
    
    /* Border / bingkai */
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 2px #0a1e3f,  /* Border navy tipis */
                0 8px 20px rgba(0,0,0,0.3);

    /* Kunci layout */
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

.logo-sekolah img {
    /* PAKSA gambar mengisi penuh frame */
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    
    /* Paksa bulat & isi penuh */
    object-fit: cover;             /* ISI PENUH frame */
    object-position: center;
    border-radius: 50%;
    
    display: block;
    margin: 0;
    padding: 0;
}

.logo-sekolah i {
    font-size: 2.5rem;
    color: #0a1e3f;
    line-height: 1;
}

.nama-sekolah {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sub-sekolah {
    font-size: 0.85rem;
    color: #c9d4e6;
    margin-top: 4px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.divider {
    height: 2px;
    background: #ffffff;
    margin: 15px auto 12px;
    width: 70px;
    border-radius: 2px;
    opacity: 0.7;
}

.judul-aplikasi {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 10px;
    letter-spacing: 0.5px;
}
.judul-aplikasi i {
    color: #ffffff;
}

.sub-aplikasi {
    font-size: 0.78rem;
    color: #c9d4e6;
    margin-top: 3px;
    display: block;
}

/* BODY */
.card-body {
    padding: 30px 30px 25px;
    background: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #0a1e3f;
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.input-group-text {
    background-color: #f4f6fa;
    border-right: none;
    color: #0a1e3f;
    border: 1px solid #ced4da;
}

.form-control {
    border-left: none;
    border: 1px solid #ced4da;
    padding: 9px 12px;
}
.form-control:focus {
    box-shadow: none;
    border-color: #0a1e3f;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control,
.input-group:focus-within .btn-toggle {
    border-color: #0a1e3f;
}

.btn-toggle {
    background-color: #f4f6fa;
    border: 1px solid #ced4da;
    border-left: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-toggle:hover {
    color: #0a1e3f;
    background-color: #e9ecef;
}

/* TOMBOL LOGIN */
.btn-login {
    background: #0a1e3f;
    border: 2px solid #0a1e3f;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 11px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.25s;
}
.btn-login:hover {
    background: #ffffff;
    color: #0a1e3f;
    border-color: #0a1e3f;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(10, 30, 63, 0.25);
}

/* FOOTER */
.footer-login {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    color: #6c757d;
    font-size: 0.78rem;
    border-top: 2px solid #0a1e3f;
}
.footer-login strong {
    color: #0a1e3f;
}

.alert {
    font-size: 0.875rem;
    border-radius: 8px;
}

/* AKUN DEMO */
.akun-demo {
    background: #f4f6fa;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid #0a1e3f;
    font-size: 0.8rem;
}
.akun-demo code {
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0a1e3f;
    font-weight: 600;
    font-size: 0.75rem;
}
@media (max-width: 480px) {
    .logo-sekolah {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px;
        max-width: 80px;
        min-height: 80px;
        max-height: 80px;
    }
    .logo-sekolah i {
        font-size: 2rem;
    }
}