
        :root {
            --bg: #0d1117;
            --card-bg: #161b22;
            --text: #c9d1d9;
            --text-dim: #8b949e;
            --accent: #58a6ff;
            --border: #30363d;
            --input-bg: #0d1117;
            --danger: #f85149;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
        }
        .container {
            max-width: 420px;
            width: 100%;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 40px 30px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.5);
            animation: fadeIn 0.5s ease-out;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .logo {
            width: 56px;
            height: 56px;
            background: rgba(88, 166, 255, 0.08);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--accent);
            border: 1px solid rgba(88, 166, 255, 0.15);
        }
        h1 { font-size: 20px; font-weight: 500; margin-bottom: 6px; color: #fff; letter-spacing: -0.5px; }
        p { color: var(--text-dim); font-size: 13px; }
        
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        label {
            display: block;
            font-size: 13px;
            color: var(--text);
            margin-bottom: 6px;
            font-weight: 500;
        }
        input[type="text"], input[type="password"] {
            width: 100%;
            padding: 10px 12px;
            background: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: #fff;
            font-size: 14px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        input[type="text"]:focus, input[type="password"]:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
        }
        
        .action-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            font-size: 12px;
        }
        .remember-me {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-dim);
            cursor: pointer;
        }
        .remember-me input {
            accent-color: var(--accent);
        }
        .help-link {
            color: var(--accent);
            text-decoration: none;
        }
        .help-link:hover {
            text-decoration: underline;
        }

        .submit-btn {
            width: 100%;
            padding: 12px;
            background: #238636;
            border: 1px solid rgba(240, 246, 252, 0.1);
            border-radius: 6px;
            color: #fff;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .submit-btn:hover {
            background: #2ea44f;
        }
        .submit-btn:disabled {
            background: #1f6e30;
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        .footer {
            margin-top: 40px;
            font-size: 11px;
            color: #484f58;
            text-align: center;
            line-height: 1.5;
            border-top: 1px solid rgba(48, 54, 61, 0.4);
            padding-top: 20px;
        }
        .system-notice {
            background: rgba(240, 185, 11, 0.05);
            border: 1px solid rgba(240, 185, 11, 0.15);
            color: #e3b341;
            padding: 10px;
            border-radius: 6px;
            font-size: 12px;
            margin-bottom: 20px;
            text-align: left;
            line-height: 1.4;
        }

        /* Стиль для плашки ошибки */
        .error-notice {
            display: none;
            background: rgba(248, 81, 73, 0.1);
            border: 1px solid rgba(248, 81, 73, 0.2);
            color: var(--danger);
            padding: 10px 12px;
            border-radius: 6px;
            font-size: 13px;
            margin-bottom: 20px;
            text-align: left;
            animation: shake 0.4s ease-in-out;
        }

        /* Анимация ошибки (потряхивание) */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-4px); }
            40%, 80% { transform: translateX(4px); }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    
