/* WEB PANEL PROXY public CSS */
:root {
            --bg-dark: #090a0f;
            --card-bg: rgba(18, 20, 29, 0.78);
            --border-color: rgba(255, 255, 255, 0.08);
            --accent: #6366f1;
            --accent-hover: #4f46e5;
            --text-main: #f3f4f6;
            --text-muted: #9ca3af;
            --danger: #ef4444;
            --danger-bg: rgba(239, 68, 68, 0.12);
            --success: #10b981;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            position: relative;
        }

        /* Фоновая сетка а-ля видеотека в блюре */
        .bg-grid {
            position: absolute;
            inset: -40px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 20px;
            opacity: 0.16;
            filter: blur(8px) saturate(1.4);
            transform: scale(1.05) rotate(-2deg);
            z-index: 0;
            pointer-events: none;
        }

        .bg-tile {
            height: 150px;
            border-radius: 12px;
            background: linear-gradient(135deg, #1e1b4b, #311042, #0f172a);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .bg-tile::after {
            content: "4K RAW // HEVC";
            position: absolute;
            bottom: 10px;
            right: 12px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            color: rgba(255,255,255,0.4);
            background: rgba(0,0,0,0.6);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .bg-tile:nth-child(2n) { background: linear-gradient(135deg, #0f172a, #1e3a8a, #172554); }
        .bg-tile:nth-child(3n) { background: linear-gradient(135deg, #3b0764, #1e1b4b, #090d16); }
        .bg-tile:nth-child(5n) { background: linear-gradient(135deg, #064e3b, #0f172a, #1e1b4b); }

        .vignette {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(9, 10, 15, 0.45) 0%, rgba(9, 10, 15, 0.96) 85%);
            z-index: 1;
        }

        /* Верхний бар со статусом ноды */
        header {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 36px;
            border-bottom: 1px solid var(--border-color);
            background: rgba(9, 10, 15, 0.6);
            backdrop-filter: blur(12px);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 18px;
            letter-spacing: 0.5px;
        }

        .brand-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--accent), #a855f7);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
        }

        .brand-icon svg {
            width: 18px;
            height: 18px;
            fill: white;
        }

        .node-metrics {
            display: flex;
            gap: 24px;
            font-size: 12px;
            color: var(--text-muted);
        }

        .metric {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--success);
            box-shadow: 0 0 10px var(--success);
            animation: pulse 2.5s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        /* Основной контейнер авторизации */
        main {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            flex: 1;
        }

        .auth-card {
            width: 100%;
            max-width: 420px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 36px 32px;
            backdrop-filter: blur(20px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
            transition: transform 0.2s ease;
        }

        .auth-header {
            margin-bottom: 28px;
        }

        .auth-header h1 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .auth-header p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .form-group {
            margin-bottom: 18px;
        }

        label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: #d1d5db;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 12px 14px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-main);
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            text-transform: none;
            letter-spacing: normal;
            margin: 0;
            color: var(--text-muted);
        }

        .btn-submit {
            width: 100%;
            padding: 13px;
            background: var(--accent);
            hover: var(--accent-hover);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: background 0.2s, opacity 0.2s;
        }

        .btn-submit:hover {
            background: var(--accent-hover);
        }

        .btn-submit:disabled {
            opacity: 0.65;
            cursor: not-allowed;
        }

        .spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: none;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .error-box {
            display: none;
            margin-top: 20px;
            padding: 12px 14px;
            background: var(--danger-bg);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 8px;
            color: #fca5a5;
            font-size: 12.5px;
            line-height: 1.45;
        }

        .error-code {
            display: block;
            margin-top: 4px;
            font-family: monospace;
            font-size: 11px;
            color: rgba(252, 165, 165, 0.7);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-7px); }
            40%, 80% { transform: translateX(7px); }
        }

        .shake {
            animation: shake 0.4s ease-in-out;
        }

        footer {
            position: relative;
            z-index: 2;
            padding: 18px 36px;
            text-align: center;
            font-size: 12px;
            color: rgba(156, 163, 175, 0.5);
            border-top: 1px solid var(--border-color);
            background: rgba(9, 10, 15, 0.6);
        }

        @media (max-width: 640px) {
            .node-metrics { display: none; }
            header { padding: 18px 20px; }
            .auth-card { padding: 28px 22px; }
        }

[data-wpp-style="wpp-0"]{font-weight:300; color:var(--text-muted); font-size:14px;}