/* Pengaturan Dasar Halaman */
body {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif; 
    margin: 0; 
    padding: 15px;
}

/* Desain Komponen Card Utama - DIPENDEKKAN */
.login-card {
    background: #ffffff;
    border-radius: 32px; 
    padding: 30px 40px;  
    width: 100%;
    max-width: 460px;    
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}


.logo-img {
    width: 110px;       
    height: auto;
    margin-bottom: 15px; 
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.08));
}
.app-title {
    color: #065f46;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.8rem;  
    margin-bottom: 3px;
    line-height: 1.2;
}
.school-title {
    color: #059669;
    font-weight: 700;
    font-size: 0.85rem;  
    margin-bottom: 12px; 
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.tagline-infaq {
    font-style: italic;
    color: #475569;
    font-size: 0.8rem;  
    line-height: 1.5;
    margin-bottom: 20px; 
    padding: 10px 16px; 
    border-left: 3px solid #10b981;
    background: #f8fafc;
    border-radius: 10px;
    text-align: center;  
}

/* Animasi Shake Box Error */
.animate-error {
    border-radius: 12px; 
    border: none; 
    background-color: #fef2f2; 
    color: #b91c1c;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Styling Slider Penukar Role - RESTRUKTURISASI */
.role-slider {
    background: #f1f5f9; 
    border-radius: 50px; 
    padding: 5px;        
    display: flex; 
    position: relative; 
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}
.role-btn {
    flex: 1; 
    z-index: 2; 
    cursor: pointer; 
    padding: 10px;       
    font-weight: 700; 
    transition: 0.3s; 
    font-size: 0.9rem;   
    color: #64748b;
}
.slider-active {
    position: absolute; 
    width: calc(50% - 5px); 
    height: calc(100% - 10px);
    background: #10b981; 
    border-radius: 50px; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1; 
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* Desain Bidang Input Form - DIPERPADAT */
.input-box {
    background: #f8fafc; 
    border: 2px solid #e2e8f0;
    border-radius: 14px; 
    padding: 6px 16px;   
    margin-bottom: 12px;
    transition: 0.3s;
}
.input-box:focus-within {
    border-color: #10b981; 
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
.input-box input {
    background: transparent; 
    border: none; 
    color: #1e293b; 
    width: 100%;
    padding: 6px; 
    outline: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
}

/* Desain Tombol Submit */
.btn-masuk {
    background: #10b981; 
    color: white; 
    font-weight: 800; 
    border-radius: 14px;
    padding: 12px;       
    width: 100%; 
    border: none; 
    transition: 0.3s;
    font-size: 1rem;     
    letter-spacing: 0.5px;
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.3);
    cursor: pointer;
}
.btn-masuk:hover {
    background: #059669; 
    transform: translateY(-2px);
    box-shadow: 0 16px 24px -8px rgba(16, 185, 129, 0.4);
}

/* Variabel Status Warna & Putaran */
.text-active { color: white !important; }
.footer-text { font-size: 0.75rem; margin-top: 20px; color: #94a3b8; } 
.dev-name { color: #065f46; font-weight: 800; text-decoration: none; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Media Query Responsif HP */
@media (max-width: 576px) {
    .login-card { padding: 25px 20px; border-radius: 24px; }
    .logo-img { width: 95px; }
    .app-title { font-size: 1.5rem; }
    .school-title { font-size: 0.8rem; }
}