/* --- NEURAL DESIGN SYSTEM MASTER (Integrated Version) --- */
:root {
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.3);
    --bg-dark: #0c101a;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.07);
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --emerald: #10b981;
    --rose: #f43f5e;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 40px 0;
}

/* --- PARTICLE CANVAS & OVERLAY --- */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- ANIMATED GRID BACKGROUND --- */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -1;
    mask-image: radial-gradient(circle, black, transparent 85%);
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: fixed; top: 20px; right: 20px; display: flex; gap: 5px;
    background: rgba(0, 0, 0, 0.4); padding: 5px; border-radius: 12px; 
    border: 1px solid var(--border); z-index: 100; backdrop-filter: blur(10px);
}
.lang-btn {
    padding: 6px 12px; font-size: 10px; font-family: var(--font-mono); font-weight: 900;
    color: var(--slate-500); border-radius: 8px; cursor: pointer; border: none; 
    background: transparent; transition: 0.3s; text-transform: uppercase;
}
.lang-btn.active { color: var(--bg-dark); background: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.lang-btn:hover:not(.active) { color: #fff; background: rgba(255, 255, 255, 0.05); }

/* --- GLASS CARD & BREATHING --- */
.login-container { width: 100%; max-width: 450px; padding: 20px; z-index: 10; }
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    animation: breathing 8s ease-in-out infinite;
}
@keyframes breathing {
    0%, 100% { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border-color: var(--border); }
    50% { box-shadow: 0 0 30px var(--primary-glow); border-color: rgba(0, 210, 255, 0.3); }
}

/* --- HEADER & LOGO --- */
.logo-box {
    width: 68px; height: 68px; background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3); border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; color: var(--primary); font-size: 2rem; 
    text-shadow: 0 0 15px var(--primary);
}
.terminal-title { 
    font-size: 13px; font-weight: 900; text-transform: uppercase; 
    letter-spacing: 0.5em; text-align: center; color: #fff; margin-bottom: 5px;
}

/* --- FORM COMPONENTS --- */
.form-group { margin-bottom: 20px; text-align: left; position: relative; }
.neural-label {
    display: block; font-size: 9px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--slate-500); margin-bottom: 8px;
}
.input-wrapper {
    position: relative; background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border); border-radius: 16px; transition: 0.4s;
}
.input-wrapper i:not(.fa-eye):not(.fa-eye-slash) { 
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%); 
    color: var(--slate-500); transition: 0.3s;
}
.neural-input {
    width: 100%; padding: 18px 18px 18px 52px; background: transparent;
    border: none; color: #fff; font-family: var(--font-mono); font-size: 14px; outline: none;
    padding-right: 45px !important;
}
.input-wrapper:focus-within { border-color: var(--primary); background: rgba(0, 0, 0, 0.6); }
.input-wrapper:focus-within i:not(.fa-eye):not(.fa-eye-slash) { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* --- PASSWORD STRENGTH CHECKLIST --- */
.password-strength-checklist {
    background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border);
    border-radius: 14px; padding: 15px; margin-bottom: 20px;
}
.checklist-item {
    font-size: 9px; font-family: var(--font-mono); color: var(--slate-500);
    margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
.checklist-item.met { color: var(--primary); }
.checklist-item i { font-size: 10px; }

/* --- VALIDATION FEEDBACK --- */


/* --- VALIDATION FEEDBACK (Hidden by Default) --- */
.input-info {
    font-size: 8px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-top: 0; /* Ubah ke 0 agar tidak memakan space saat sembunyi */
    padding-left: 5px;
    display: block;
    letter-spacing: 1px;
    
    /* Efek Sembunyi */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Class trigger saat input aktif atau divalidasi */
.input-info.visible {
    opacity: 1;
    max-height: 20px; /* Beri ruang agar teks terlihat */
    margin-top: 6px;
}

.input-info.invalid { color: var(--rose); }
.input-info.valid { color: var(--emerald); }

/* --- TOGGLE PASSWORD --- */


/* --- BUTTONS --- */
.btn-neural, .btn-initiate {
    width: 100%; padding: 18px; background: var(--primary); color: var(--bg-dark);
    border: none; border-radius: 16px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.3em; font-size: 11px; cursor: pointer; transition: 0.3s;
}
.btn-neural:disabled, .btn-initiate:disabled { background: #1e293b; color: var(--slate-500); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-neural:not(:disabled):hover, .btn-initiate:not(:disabled):hover { box-shadow: 0 0 25px var(--primary-glow); transform: translateY(-2px); }

/* --- REGISTER AREA --- */
.register-area { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--border); text-align: center; }
.btn-register { display: inline-block; margin-top: 8px; color: var(--primary); text-decoration: none; font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; transition: 0.3s; }
.btn-register:hover { color: #fff; text-shadow: 0 0 10px var(--primary); }

/* --- DECORATION --- */
.terminal-logs { position: fixed; bottom: 30px; left: 30px; font-family: var(--font-mono); font-size: 8px; color: var(--slate-500); opacity: 0.4; pointer-events: none; }
.icon-crit {  font-size: 11px;margin-right: 5px; color: rgba(255, 255, 255, 0.3); }

        .checklist-item.active {
            color: #ffffff; /* Teks menyala putih */
        }

        .checklist-item.active .icon-crit {
            color: #00d2ff; /* Icon menyala biru cyan STAR BOT */
            text-shadow: 0 0 8px rgba(0, 210, 255, 0.7); /* Efek GLOW icon */
        }
       

        .login-btn:disabled {
            background: #444;
            cursor: not-allowed;
            opacity: 0.5;
            box-shadow: none;
            transform: none !important;
        }
.input-group {position: relative;margin-bottom: 35px;}
/* --- STARBOT NEURAL SWEETALERT CUSTOM --- */

/* Container Utama Popup */
.starbot-swal-popup {
    background: rgba(12, 16, 26, 0.95) !important; /* Dark background */
    backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 
                0 0 15px var(--primary-glow) !important;
    color: #fff !important;
    font-family: var(--font-main) !important;
}

/* Judul (Title) */
.starbot-swal-title {
    font-family: var(--font-mono) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow) !important;
}

/* Konten / Teks */
.starbot-swal-html {
    font-size: 13px !important;
    color: var(--slate-400) !important;
    line-height: 1.6 !important;
    font-family: var(--font-mono) !important;
}

/* Tombol Confirm (Gaya Neural) */
.starbot-swal-confirm {
    background: var(--primary) !important;
    color: var(--bg-dark) !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 11px !important;
    padding: 12px 30px !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    transition: 0.3s !important;
}

.starbot-swal-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 25px var(--primary) !important;
}

/* Tombol Cancel */
.starbot-swal-cancel {
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--slate-500) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
}

.starbot-swal-cancel:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* Icon (Success/Error/Warning) */
.swal2-icon {
    border-color: var(--border) !important;
}

.swal2-icon.swal2-success {
    color: var(--emerald) !important;
    border-color: var(--emerald) !important;
}

.swal2-icon.swal2-error {
    color: var(--rose) !important;
    border-color: var(--rose) !important;
}

.swal2-success-ring { border: 0.25em solid rgba(16, 185, 129, 0.2) !important; }
/* Pastikan pembungkusnya relative */


/* Posisi icon mata */
.toggle-password {
    position: absolute;
    right: 15px; /* Jarak dari kanan */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10; /* Pastikan di atas input */
    padding: 5px;
    color: var(--slate-500);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- BACK TO TOP NEURAL STYLE --- */
.btn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    /* Gradient identik dengan tombol login */
    background: linear-gradient(135deg, var(--primary) 0%, #3a7bd5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px var(--primary-glow);
    cursor: pointer;
    
    /* Center icon */
    display: none; /* Tersembunyi di awal */
    align-items: center;
    justify-content: center;
    
    /* Animasi */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-back-to-top i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.btn-back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 30px var(--primary);
    background: linear-gradient(135deg, #00e5ff 0%, #4facfe 100%);
}

.btn-back-to-top:hover i {
    transform: translateY(-3px);
}

/* Active/Click Effect */
.btn-back-to-top:active {
    transform: translateY(0) scale(0.95);
}
.otp-field:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 15px var(--primary-glow), inset 0 0 5px var(--primary-glow) !important;
        background: rgba(0, 210, 255, 0.05) !important;
        transform: translateY(-2px);
    }
    .btn-register.disabled {
        opacity: 0.5;
        pointer-events: none;
        text-shadow: none !important;
    }
/* Beri sedikit padding kanan pada input agar teks tidak tertutup icon */


