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

        body {
            font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
            background: #f0f2f5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 16px;
        }

        .login-card {
            background: #ffffff;
            max-width: 420px;
            width: 100%;
            padding: 40px 36px 32px;
            border-radius: 24px;
            box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
            transition: box-shadow 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        .login-card:hover {
            box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
        }

        h1 {
            font-size: 1.8rem;
            font-weight: 600;
            color: #1e293b;
            text-align: center;
            margin-bottom: 8px;
            letter-spacing: -0.01em;
            line-height: 1.3;
        }

        .subhead {
            font-size: 0.95rem;
            color: #64748b;
            text-align: center;
            margin-bottom: 32px;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 20px;
        }

        .form-group {
            margin-bottom: 22px;
        }

        label {
            display: block;
            font-size: 0.9rem;
            font-weight: 500;
            color: #334155;
            margin-bottom: 6px;
            letter-spacing: 0.3px;
        }

        input {
            width: 100%;
            padding: 14px 16px;
            font-size: 1rem;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            background: #f8fafc;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
            outline: none;
            color: #0f172a;
            font-weight: 400;
        }

        input:focus {
            border-color: #3b82f6;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
        }

        input:disabled {
            background: #f1f5f9;
            color: #94a3b8;
            border-color: #e2e8f0;
            cursor: not-allowed;
            opacity: 0.8;
        }

        .error-message {
            background: #fef2f2;
            color: #b91c1c;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 18px;
            border-left: 4px solid #dc2626;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: opacity 0.2s;
            line-height: 1.4;
        }

        .error-message.hidden {
            display: none;
        }

        .error-icon {
            font-size: 1.2rem;
            line-height: 1;
        }

        .btn-login {
            width: 100%;
            background: #0f172a;
            color: #ffffff;
            font-size: 1.05rem;
            font-weight: 600;
            padding: 16px 20px;
            border: none;
            border-radius: 14px;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
            letter-spacing: 0.3px;
            margin-top: 8px;
            box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.2);
        }

        .btn-login:hover:not(:disabled) {
            background: #1e293b;
            box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.3);
        }

        .btn-login:active:not(:disabled) {
            transform: scale(0.98);
        }

        .btn-login:disabled {
            background: #94a3b8;
            cursor: not-allowed;
            box-shadow: none;
            opacity: 0.7;
        }

        .timer-badge {
            display: inline-block;
            background: #334155;
            color: #ffffff;
            font-size: 0.85rem;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 20px;
            margin-left: 8px;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .timer-badge.hidden {
            display: none;
        }

        .footer {
            margin-top: 48px;
            font-size: 0.85rem;
            color: #94a3b8;
            text-align: center;
            letter-spacing: 0.3px;
            border-top: 1px solid #e2e8f0;
            padding-top: 24px;
            width: 100%;
            max-width: 420px;
        }

        /* Плавное появление ошибки */
        @keyframes fadeSlide {
            0% { opacity: 0; transform: translateY(-4px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .error-message:not(.hidden) {
            animation: fadeSlide 0.2s ease-out;
        }

        /* Адаптив */
        @media (max-width: 480px) {
            .login-card {
                padding: 28px 20px 24px;
                border-radius: 20px;
            }

            h1 {
                font-size: 1.5rem;
            }

            .subhead {
                font-size: 0.85rem;
                margin-bottom: 24px;
            }

            input {
                padding: 12px 14px;
                font-size: 0.95rem;
            }

            .btn-login {
                padding: 14px;
                font-size: 1rem;
            }

            .footer {
                margin-top: 32px;
                font-size: 0.8rem;
            }
        }
    
