﻿/* ============================================================
   FULLSCREEN VIDEO BACKGROUND
   ============================================================ */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.90; /* lebih jelas tapi tetap fokus pada login */
    filter: brightness(80%) contrast(105%);
}

/* ============================================================
   BODY & BASE
   ============================================================ */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: none !important; /* Tidak menutupi video */
    background-color: #111;
    color: #333;
    overflow: hidden;
}

/* ============================================================
   LOGIN BOX — PREMIUM GLASSMORPHISM GOLD
   ============================================================ */
.login-box {
    background: rgba(255, 255, 255, 0.07);
    padding: 2rem;
    border-radius: 18px;
    max-width: 400px;
    margin: auto;
    margin-top: 8vh;
    color: #f1f1f1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(179, 134, 0, 0.55);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 22px rgba(179, 134, 0, 0.22);
    position: relative;
    z-index: 2;
    animation: fadeInLogin 1s ease-out;
}

@keyframes fadeInLogin {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h2 {
    color: #0f9d58; /* hijau tua solid */
    font-weight: bold;
    margin-bottom: 1.4rem;
    text-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* ============================================================
   FORM INPUT
   ============================================================ */
.form-control {
    background-color: rgba(255, 255, 255, 0.93);
    color: #222;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 0.9rem;
}

    .form-control::placeholder {
        color: #777;
    }

/* ============================================================
   BUTTON STYLE — GREEN GOLD
   ============================================================ */
.btn-gold {
    background-color: #0f9d58;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s ease;
}

    .btn-gold:hover {
        background-color: #e0c200;
        color: #111;
        box-shadow: 0 0 14px rgba(255, 193, 7, 0.45);
    }

/* ============================================================
   CAPTCHA
   ============================================================ */
.captcha-img {
    width: 100px;
    object-fit: fill;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 52%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-text {
    color: #d7d7d7;
    font-size: 0.85rem;
}

    .footer-text a {
        color: #ffc107;
        text-decoration: none;
        font-weight: 500;
    }

        .footer-text a:hover {
            text-decoration: underline;
        }

/* ============================================================
   SPINNER LOADER
   ============================================================ */
#spinneroverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#spinner {
    width: 5rem;
    height: 5rem;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

#btnCloseSpinner {
    background-color: red;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: .3s ease;
    position: absolute;
    top: 10px;
    right: 10px;
}

    #btnCloseSpinner:hover {
        background-color: rgba(255, 255, 255, 0.35);
        border-radius: 50%;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   DIGITAL CLOCK
   ============================================================ */
.clock-wrap {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,193,7,0.14), rgba(255,193,7,0.07));
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,193,7,0.15);
    text-align: center;
    min-width: 220px;
}

#clock {
    margin: 0;
    font-family: 'Orbitron', 'Agency FB', monospace;
    font-weight: 700;
    font-size: clamp(14px, 4.5vw, 24px);
    line-height: 1;
    color: #ffc107;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45), 0 0 7px rgba(255,193,7,0.2);
}

/* Kedip separator */
.sep {
    opacity: 1;
    transition: .15s;
}

    .sep.dim {
        opacity: .12;
    }

/* Tanggal */
#clockDate {
    margin-top: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    opacity: 0.85;
}

/* ============================================================
   HEADER TITLE GOLD OUTLINE
   ============================================================ */
.h-header {
    text-align: center;
    margin-bottom: 10px;
}

.h-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1.4px;
    color: #ffda44;
    font-family: 'Science Gothic', sans-serif;
    text-transform: uppercase;
    /* Efek teknologi glow */
    text-shadow: 0 0 4px rgba(255, 218, 68, 0.55), 0 0 8px rgba(255, 216, 90, 0.75), 0 0 12px rgba(255, 193, 7, 0.85);
    animation: goldTechGlow 2.5s ease-in-out infinite alternate;
}

@keyframes goldTechGlow {
    from {
        text-shadow: 0 0 3px rgba(255, 218, 68, 0.4), 0 0 6px rgba(255, 216, 90, 0.55), 0 0 10px rgba(255, 193, 7, 0.5);
    }

    to {
        text-shadow: 0 0 6px rgba(255, 218, 68, 0.75), 0 0 12px rgba(255, 216, 90, 0.85), 0 0 18px rgba(255, 193, 7, 1);
    }
}


/* Version text — hijau tua + outline emas gelap */
.h-version {
    font-size: 8pt;
    margin-top: 2px;
    display: block;
    color: #01310c;
    opacity: 1;
    font-family: 'Segoe UI', sans-serif;
}
.footer-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.15); /* lebih transparan elegan */
    backdrop-filter: blur(6px); /* efek kaca */
    -webkit-backdrop-filter: blur(6px);
    text-align: center;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

    .footer-modern p {
        margin: 0;
        font-size: 11px;
        color: #e8f5e9; /* putih kehijauan lembut */
        font-weight: 300;
        letter-spacing: 0.3px;
    }

    .footer-modern a {
        color: #a5ffbf; /* hijau neon elegan */
        text-decoration: none;
        font-weight: 400;
    }

        .footer-modern a:hover {
            text-decoration: underline;
            color: #7fffaa;
        }
