   /* Общие стили */
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: Arial, sans-serif;
            background-color: #1e1e2f;
            color: #ffffff;
            overflow: hidden;
            touch-action: none;
            user-select: none; /* Запрет выделения текста */
            -webkit-user-select: none; /* Для Safari */
            -moz-user-select: none; /* Для Firefox */
            -ms-user-select: none; /* Для старых версий IE */
        }

        /* Убираем подсветку при нажатии на элементы */
        * {
            -webkit-tap-highlight-color: transparent; /* Убирает голубую подсветку на мобильных устройствах */
            outline: none; /* Убирает outline при фокусе */
        }

        /* Запрет выделения текста для всех элементов */
        input, button, label, a, span, div {
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        /* Убираем outline при фокусе на input и button */
        input:focus, button:focus {
            outline: none;
        }

        /* Стили для автозаполненных полей */
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active {
            -webkit-text-fill-color: #ffffff !important; /* Цвет текста */
            -webkit-box-shadow: 0 0 0 30px #1e1e2f inset !important; /* Цвет фона */
            transition: background-color 5000s ease-in-out 0s; /* Плавное изменение фона */
        }

        /* Стили для предзагрузчика */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #1e1e2f;
            z-index: 1000;
        }

        .preloader .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .preloader .logo-container img {
            width: 40px;
            height: 40px;
            margin-right: 5px;
            margin-bottom: 7px;
            filter: brightness(0) invert(1);
        }

        .preloader .logo-container h1 {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
            color: #ffffff;
        }

        .preloader .loader {
            border: 4px solid #007bff;
            border-top: 4px solid transparent;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .auth-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            height: 100vh;
            padding: 20px;
            box-sizing: border-box;
        }

        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .logo-container img {
            width: 40px;
            height: 40px;
            margin-right: 5px;
            margin-bottom: 7px;
            filter: brightness(0) invert(1);
        }

        .logo-container h1 {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
            color: #ffffff;
        }

        .auth-form {
            padding: 80px;
            border-radius: 10px;
            width: 100%;
            max-width: 400px;
            text-align: center;
            margin-top: 20px;
            position: relative;
            overflow: hidden;
            opacity: 0; /* Начальное состояние для анимации */
        }

        .auth-form h2 {
            margin-bottom: 20px;
            font-size: 24px;
            font-weight: bold;
            background: linear-gradient(135deg, #3387e0, #0056b3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            transition: all 0.5s ease;
        }

        .input-container {
            position: relative;
            margin-bottom: 20px;
        }

        .input-container input {
            width: 100%;
            padding: 10px;
            border: 1px solid #444;
            border-radius: 5px;
            font-size: 14px;
            background-color: #1e1e2f; /* Однотонный фон вместо градиента */
            color: #ffffff;
            transition: border-color 0.3s ease;
            box-sizing: border-box;
            padding-left: 10px;
        }

        .input-container input:focus {
            border-color: #007bff;
            outline: none;
        }

        .input-container input.error {
            border-color: #ff6b6b;
        }

        .input-container label {
            position: absolute;
            top: -7px;
            left: 10px;
            font-size: 12px;
            color: #ffffff;
            pointer-events: none;
            transition: all 0.3s ease;
            background-color: #1e1e2f; /* Фон, совпадающий с фоном контейнера */
            padding: 0 5px;
            z-index: 1; /* Помещаем текст над псевдоэлементом */
        }

        /* Псевдоэлемент для создания эффекта разрыва рамки */
        .input-container label::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -2px; /* Расширяем влево, чтобы перекрыть границу */
            right: -2px; /* Расширяем вправо, чтобы перекрыть границу */
            height: 2px; /* Толщина рамки */
            background-color: #1e1e2f; /* Фон, совпадающий с фоном контейнера */
            transform: translateY(-50%);
            z-index: -1; /* Помещаем под текст */
        }

        .input-container input:focus + label,
        .input-container input:not(:placeholder-shown) + label {
            top: -10px;
            font-size: 12px;
            color: #007bff;
        }

        .auth-form .error-message {
            color: #ff6b6b;
            font-size: 12px;
            margin-bottom: 10px;
            text-align: left;
            display: none;
        }

        .auth-form button {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: #ffffff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .auth-form button.success {
            background: linear-gradient(135deg, #28a745, #218838);
            pointer-events: none; /* Отключаем клики по кнопке после успеха */
        }

        .auth-form button:hover {
            background: linear-gradient(135deg, #0056b3, #003d80);
            transform: scale(1.05);
        }

        .auth-form .switch-mode {
            margin-top: 15px;
            font-size: 14px;
            color: #ffffff;
            transition: all 0.5s ease;
        }

        .auth-form .switch-mode a {
            color: #007bff;
            text-decoration: none;
            cursor: pointer;
        }

        .auth-form .switch-mode a:hover {
            text-decoration: underline;
        }

        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeOut {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(20px); }
        }

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        .fade-out {
            animation: fadeOut 0.5s ease forwards;
        }

        /* Стиль для кнопки "Назад" */
        .back-button {
            margin-top: 10px;
            background: linear-gradient(135deg, #6c757d, #495057);
        }

        .back-button:hover {
            background: linear-gradient(135deg, #495057, #343a40);
        }

.error-popup {
    position: fixed;
    top: 20px;
    left: 20px; /* Отступ слева */
    right: 20px;
    background-color: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.5s ease forwards;
}

        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        @keyframes slideOut {
            from { transform: translateX(0); }
            to { transform: translateX(100%); }
        }

        .error-popup.hide {
            animation: slideOut 0.5s ease forwards;
        }
                .auth-form button.success {
            background-color: #28a745 !important; /* Зелёный цвет */
            color: white !important; /* Белый текст */
            border: none !important; /* Убираем границу */
        }

        /* Голубое свечение только для мобильных устройств */
        @media (max-width: 768px) {
            .auth-form button.success {
                box-shadow: 0 0 15px rgb(0 57 255 / 70%); /* Голубое свечение */
            }
        }

        /* Анимация смахивания */
        @keyframes swipeOut {
            0% {
                transform: translateX(0);
                opacity: 1;
            }
            100% {
                transform: translateX(-100%);
                opacity: 0;
            }
        }

        .swipe-out {
            animation: swipeOut 0.5s ease-in-out forwards;
        }
        

/* Анимация исчезновения (fade-out) */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
        /* Анимация появления (fade-in) */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Класс для анимации появления */
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

/* Классы для анимаций */
.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

        /* Telegram Widget Container */
        .telegram-widget-container {
            margin: 20px 0;
            text-align: center;
            width: 100%;
            min-height: 44px;
            display: flex;
            justify-content: center;
        }

        /* Fallback button styles */
        .telegram-fallback-btn {
            background-color: #0088cc;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 136, 204, 0.2);
            width: 100%;
            max-width: 280px;
        }

        .telegram-fallback-btn:hover {
            background-color: #0077b3;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 136, 204, 0.3);
        }

        .telegram-fallback-btn i {
            margin-right: 10px;
            font-size: 20px;
        }

        /* Divider styles */
        .divider {
            display: flex;
            align-items: center;
            margin: 20px 0;
            color: #888;
            font-size: 14px;
        }

        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            border-bottom: 1px solid #ddd;
            margin: 0 10px;
            opacity: 0.3;
        }

