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

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

/* ===== 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; }

/* ===== Wizard (visit.html) ===== */

.option-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c2a41;
    color: #d6e3ff;
    font-size: 0.875rem;
    line-height: 1.35;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.option-btn:active { transform: scale(0.99); }
.option-btn .radio-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #8e9099;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.option-btn.selected {
    border-color: rgba(38, 254, 220, 0.6);
    background: rgba(38, 254, 220, 0.08);
}
.option-btn.selected .radio-dot {
    border-color: #26fedc;
}
.option-btn.selected .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26fedc;
}

.q-card {
    background: #112036;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem;
}
.q-card.q-error {
    border-color: rgba(248, 113, 113, 0.6);
}

.progress-track {
    height: 4px;
    border-radius: 2px;
    background: #1c2a41;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #26fedc, #aec7f6);
    transition: width 0.3s ease;
}

.wizard-textarea {
    width: 100%;
    background: #1c2a41;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #d6e3ff;
    min-height: 110px;
    resize: vertical;
}
.wizard-textarea:focus {
    outline: none;
    border-color: rgba(38, 254, 220, 0.5);
    box-shadow: 0 0 0 3px rgba(38, 254, 220, 0.08);
}
.wizard-textarea::placeholder { color: #475569; }
