:root {
    --primary: #8e26d4;
    --primary-dark: #5e1891;
    --text-dark: #2c3e50;
    --text-grey: #95a5a6;
}

body {
    /* Latar Belakang Tumpuk (Layered Background) */
    background-image: 
        /* 1. POLA KOTAK-KOTAK (GRID) */
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        
        /* 2. GRADIENT CAHAYA (GLOW) */
        radial-gradient(circle at top right, #ab47bc, transparent 60%),
        radial-gradient(circle at bottom left, #7e57c2, transparent 60%),
        
        /* 3. WARNA DASAR UNGU */
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

    /* Ukuran Kotak-kotak (30px x 30px) */
    background-size: 30px 30px, 30px 30px, cover, cover, cover;
    background-position: center;
    background-attachment: fixed;

    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; margin: 0;
}

/* --- KARTU LOGIN (GLASSMORPHISM) --- */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%; max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative; overflow: hidden;
    z-index: 10;
}

/* Garis Hiasan Atas */
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary), #d232c9);
}

.logo-img { width: 160px; margin-bottom: 25px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.title-text { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.subtitle-text { font-size: 0.9rem; color: var(--text-grey); margin-bottom: 30px; }

/* --- FORM INPUT --- */
.input-group-modern { margin-bottom: 20px; text-align: left; }
.input-label { font-size: 0.75rem; font-weight: 700; color: var(--text-grey); margin-bottom: 8px; display: block; text-transform: uppercase; }

.input-wrapper { position: relative; width: 100%; }

.form-control {
    width: 100%; height: 50px;
    padding: 10px 45px; /* Space untuk ikon */
    border-radius: 12px;
    border: 2px solid #f0f2f5;
    background: #f8f9fa;
    font-size: 1rem; color: var(--text-dark);
    box-sizing: border-box;
}
.form-control:focus {
    background: #fff; border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 4px rgba(142, 38, 212, 0.1);
}

/* Ikon-ikon */
.input-icon-left {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: 15px; color: #b0b3b8; font-size: 1.1rem; pointer-events: none;
    transition: color 0.3s;
}
.form-control:focus ~ .input-icon-left { color: var(--primary); }

.toggle-password {
    position: absolute; top: 50%; transform: translateY(-50%);
    right: 15px; color: #b0b3b8; font-size: 1rem; cursor: pointer; z-index: 10;
}
.toggle-password:hover { color: var(--primary); }

/* Tombol */
.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border: none; border-radius: 12px;
    padding: 16px; font-weight: 700; font-size: 1rem; width: 100%;
    box-shadow: 0 10px 20px rgba(142, 38, 212, 0.3);
    cursor: pointer; transition: transform 0.2s;
}
.btn-login:active { transform: scale(0.98); }

.footer-link { margin-top: 25px; font-size: 0.9rem; color: var(--text-grey); }
.footer-link a { color: var(--primary); text-decoration: none; font-weight: 700; }
.spinner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.9); z-index: 20; border-radius: 24px; display: none; align-items: center; justify-content: center; flex-direction: column; }

.phone-prefix {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 2;
}

.input-hp {
    padding-left: 70px;
}
/* --- RAMADHAN DECORATION --- */
.ramadhan-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.scene-crescent {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    box-shadow: -22px 0 0 0 #ffd369;
    filter: drop-shadow(0 0 12px rgba(255, 211, 105, 0.5));
}

.scene-lantern {
    position: absolute;
    top: 0;
    width: 42px;
    height: 62px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe7a8, #ffbd59);
    color: #7b4b00;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    animation: swing 3s ease-in-out infinite;
}

.scene-lantern::before {
    content: "";
    position: absolute;
    top: -36px;
    width: 2px;
    height: 36px;
    background: rgba(255, 255, 255, 0.5);
}

.lantern-left { left: 12%; }
.lantern-right { right: 18%; animation-delay: 0.6s; }

.scene-star {
    position: absolute;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    animation: twinkle 2s ease-in-out infinite;
}

.scene-star.s1 { top: 14%; left: 20%; }
.scene-star.s2 { top: 20%; right: 28%; animation-delay: 0.4s; }
.scene-star.s3 { top: 28%; left: 72%; animation-delay: 0.8s; }

@keyframes swing {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}
