:root {
    --gold: #d4af37;
    --gold-grad: linear-gradient(135deg, #d4af37 0%, #f9e076 50%, #b8860b 100%);
    --bg-dark: #000000;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #000000 0%, #02050f 25%, #0a2e3d 50%, #050a1d 75%, #000000 100%);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: deepLightFlow 18s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}
@keyframes deepLightFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/*START LOADER*/
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.logo-container img, .logo-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
    will-change: transform;
    z-index: 10;
}
.hex-outer:hover .logo-container img {
    transform: scale(1.1);
}
.gate-loader { 
    position: fixed; 
    inset: 0; 
    background: var(--bg-dark); 
    z-index: 999999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    will-change: opacity;
}
.gate-content { 
    text-align: center; 
    width: 100%; 
    max-width: 300px; 
    perspective: 1000px;
}
.loader-visual-wrapper { 
    position: relative; 
    width: 110px; 
    height: 110px; 
    margin: 0 auto 35px; 
}
.hex-outer { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    animation: hexFloat 3s ease-in-out infinite;
    will-change: transform;
}
.hex-inner { 
    width: 102px; 
    height: 102px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}
.logo-container img, .logo-container svg {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}
.loader-ring, .loader-ring-reverse { 
    position: absolute; 
    inset: -8px;
    border-top: 2px solid #99f6ff; 
    border-radius: 50%; 
    animation: rotateRing 1.5s linear infinite; 
    will-change: transform;
}
.loader-ring-reverse { 
    inset: -16px;
    border-bottom: 2px solid #00d2ff; 
    animation: rotateRingReverse 2.5s linear infinite; 
}
.loader-brand { 
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 5px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(45deg, #00d2ff, #99f6ff, #00d2ff, #0080ff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
}
.loading-progress-text {
    font-size: 10px;
    color: #fff;
    background: linear-gradient(45deg, #00d2ff, #99f6ff, #00d2ff, #0080ff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.loading-bar-container { 
    width: 100%; 
    height: 2px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 4px; 
    overflow: hidden;
}
.loading-bar-fill { 
    width: 0%; 
    height: 100%; 
    background: linear-gradient(45deg, #00d2ff, #99f6ff, #00d2ff, #0080ff, #00d2ff);
    box-shadow: 0 0 12px #00d2ff;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
}
.loader-status-msg {
    margin-top: 12px;
    font-size: 8px;
    color: #fff;
    background: linear-gradient(45deg, #00d2ff, #99f6ff, #00d2ff, #0080ff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    font-weight: bold;
    opacity: 0.6;
    animation: blinker 2s linear infinite;
}
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotateRingReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes hexFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}
@keyframes blinker {
    50% { opacity: 0.1; }
}
.gate-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}
/*END LOADER*/

.login-container {
    width: 100%;
    max-width: 410px;
    z-index: 10;
}

.glass-login-card {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 35px;
    box-shadow: #000 0px 4px 8px;
    text-align: center;
}
.divider-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 10px 0;
}
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.full-width {
    grid-column: span 2;
}

.icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-box img {
    max-width: 100px; 
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}
.icon-box img:hover {
    transform: scale(1.05);
}
.login-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 15px;
    box-shadow: #000 0px 4px 8px;
}

.dot {
    height: 6px;
    width: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 8px;
}

.pulse {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.input-label {
    text-align: left;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 5px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i:not(.fa-eye):not(.fa-eye-slash) {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 17px;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 50px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white !important;
    outline: none;
    transition: all 0.3s;
    font-size: 14px;
    box-shadow: #000 0px 4px 8px;
}
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover, 
.input-group input:-webkit-autofill:focus, 
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #1244ba00 inset !important; 
    -webkit-text-fill-color: #94a3b8 !important;
    transition: background-color 5000s ease-in-out 0s;
}
.input-group input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15), #000 0px 4px 8px;
}

.toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
    transition: 0.3s;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn i {
    color: #64748b;
    font-size: 15px;
}

.toggle-btn.active i {
    color: #3b82f6;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: 0.3s;
    box-shadow: #000 0px 4px 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@keyframes colorChange {
    0% {
        color: #475569;
    }

    25% {
        color: #3b82f6;
    }

    50% {
        color: #a855f7;
    }

    75% {
        color: #fbbf24;
    }

    100% {
        color: #475569;
    }
}

@keyframes colorChangeBright {
    0% {
        color: #334155;
    }

    33% {
        color: #22c55e;
    }

    66% {
        color: #ec4899;
    }

    100% {
        color: #334155;
    }
}

.login-footer {
    margin-top: 25px;
    font-size: 11px;
    animation: colorChange 8s infinite alternate ease-in-out;
}

.footer-links {
    margin-top: 5px;
    animation: colorChangeBright 6s infinite alternate-reverse ease-in-out;
}

#alert-place {
    min-height: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.swal2-container.swal2-top {
    position: absolute !important;
}

.swal2-popup.swal2-toast {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 10px 15px !important;
    width: 100% !important;
    /* Mengikuti lebar form */
    max-width: 100% !important;
}

.swal2-title {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 0 10px !important;
}

.swal2-icon {
    transform: scale(0.7) !important;
    margin: 0 !important;
}

.swal2-timer-progress-bar {
    background: #3b82f6 !important;
    height: 2px !important;
}

.gem-vvip-nano {
    position: fixed;
    bottom: 20px;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 999999;
}
.gem-vvip-trigger {
    width: 18px;
    height: 35px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    transition: all 0.3s ease;
}
.gem-vvip-trigger i {
    font-size: 10px; /* Ikon lebih kecil */
    transition: transform 0.4s ease;
}
.gem-vvip-list {
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 25px;
    margin-left: -300px;
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 4px 8px #000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vvip-link {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.vvip-link.wa { background: #25D366; }
.vvip-link.tg { background: #0088cc; }
.vvip-link.fb { background: #1877F2; }
.vvip-link.lc { background: #ff9800; }
.vvip-link:hover {
    transform: scale(1.2) translateY(-3px);
    filter: brightness(1.2);
}
.gem-vvip-nano.is-active .gem-vvip-list {
    margin-left: 5px;
    opacity: 1;
    visibility: visible;
}
.gem-vvip-nano.is-active .gem-vvip-trigger {
    background: #ff4757;
    width: 22px;
}
.gem-vvip-nano.is-active #vvipIcon {
    transform: rotate(180deg);
}
.gem-vvip-nano.is-active .vvip-link {
    animation: vvipFade 0.4s ease forwards;
}
@keyframes vvipFade {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding-top: 50px;
    }
    .icon-box img {
        max-width: 80px;
    }
    .glass-login-card {
        padding: 10px;
    }

    .login-container {
        max-width: 100%;
    }
}