/* Камуфляж-страница нод: терминал-стиль под panel.sitelab.pro (неон #00ff41 на #0a0e27).
   Всё локальное — ни одного внешнего запроса (шрифт = системный моно-стек). */
:root {
    --bg: #0a0e27;
    --accent: #00ff41;
    --error: #ff4d5a;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--accent);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* сканлайны поверх всего */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 3px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0%   { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.terminal-header {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid var(--accent);
    border-bottom: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.terminal-title {
    margin-left: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.main-content {
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid var(--accent);
    padding: 40px;
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.15),
        inset 0 0 40px rgba(0, 255, 65, 0.03);
}

.header { margin-bottom: 32px; }

.header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    position: relative;
}

.header .subtitle {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.header .subtitle::before { content: '> '; }

/* глитч заголовка — как на панели */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch1 2s infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch2 2s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* форма */
.auth { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field .label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.6;
    text-transform: uppercase;
}

.field .label::before { content: '$ '; }

.field input {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--accent);
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.35);
    padding: 11px 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

.btn {
    position: relative;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 255, 65, 0.08);
    border: 2px solid var(--accent);
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
    background: rgba(0, 255, 65, 0.16);
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.25);
}

.btn:disabled { cursor: default; opacity: 0.75; }

.btn.loading .btn-text { visibility: hidden; }

/* лоадер — крутится только во время «проверки» */
.loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(0, 255, 65, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.loading .loader { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.status {
    min-height: 1.2em;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.status.visible { opacity: 1; }

.status.error {
    color: var(--error);
    text-shadow: 0 0 8px rgba(255, 77, 90, 0.4);
}

.status::before { content: '> '; }

.footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 0.75rem;
    opacity: 0.45;
}

.footer code { font-family: var(--mono); }

@media (max-width: 480px) {
    .main-content { padding: 26px; }
    .header h1 { font-size: 1.5rem; }
}
