[x-cloak] { display: none !important; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #041329;
    -webkit-tap-highlight-color: transparent;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.filled {
    font-variation-settings: 'FILL' 1;
}

/* ===== Login canvas ===== */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.scan-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(38,254,220,0) 10%, rgba(38,254,220,0.4) 50%, rgba(38,254,220,0) 90%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    animation: scanDown 6s linear infinite;
    opacity: 0.6;
}

@keyframes scanDown {
    0% { top: -2px; }
    100% { top: 100vh; }
}

.hex-icon {
    width: 64px;
    height: 64px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hex-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(38,254,220,0.2), rgba(174,199,246,0.2));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexPulse 3s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.login-card {
    background: rgba(4, 19, 41, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(38, 254, 220, 0.15);
    border-radius: 1rem;
    box-shadow: 0 0 40px rgba(38, 254, 220, 0.05), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}
.login-card:hover {
    border-color: rgba(38, 254, 220, 0.25);
}

.login-input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(4, 19, 41, 0.6);
    color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.login-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(38, 254, 220, 0.6);
    box-shadow: 0 0 0 3px rgba(38, 254, 220, 0.1), 0 0 20px rgba(38, 254, 220, 0.05);
}
.login-input::placeholder { color: #475569; }
.login-input:focus::placeholder { color: #94a3b8; }

.input-group:focus-within .input-icon {
    color: #0f172a;
    transition: color 0.2s;
}

.login-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(38, 254, 220, 0.4);
    background: linear-gradient(135deg, rgba(38, 254, 220, 0.15) 0%, rgba(174, 199, 246, 0.15) 100%);
    color: #26fedc;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(38, 254, 220, 0.2) 0%, rgba(174, 199, 246, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.2s;
}
.login-btn:hover::before { opacity: 1; }
.login-btn:hover {
    border-color: rgba(38, 254, 220, 0.7);
    box-shadow: 0 0 25px rgba(38, 254, 220, 0.15);
}
.login-btn:disabled { opacity: 0.4; cursor: not-allowed; }
