* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background: #0e0f12;
    color: #fff;
}

.content-wrapper { display: flex; flex-direction: column; min-height: 100%; }
.container { display: flex; flex: 1; }
.column { flex: 1; display: flex; justify-content: center; align-items: center; }
.column.left  { background-color: #0e0f12; position: relative; overflow: hidden; }
.column.right { background-color: #0e0f12; }

.content { text-align: center; max-width: 28em; width: 100%; padding: 1em; }

/* Фоновая картинка слева */
.image-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        url('img/bg.png');
    background-size: 670px 950px; 
    background-position: top center;
    background-repeat: no-repeat;
}

.left-column-list-container {
    position: relative;
    z-index: 1;
    width: 325px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.left-column-list-header-text-wrapper { padding: 10px 10px 25px; }

.left-column-list-header-text {
    color: #fff;
    font-weight: 300;
    font-size: 18px;
    line-height: 115%;
    text-align: center;
    font-family: "Roboto", sans-serif;
}

.left-column-list-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1em;
}

.left-column-list-icon {
    width: 2.3em;
    height: 2.3em;
    border-radius: .5em;
    margin-right: 1em;
    flex-shrink: 0;
    font-size: 1.4em;
    background-color: rgba(92,115,133,.23);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2699f7;
}

.left-column-list-text {
    color: #fff;
    font-weight: 300;
    font-size: 18px;
    line-height: normal;
    text-align: left;
    font-family: "Roboto", sans-serif;
}

.right-center-border {
    height: 1px;
    margin-top: 2em;
    width: 100%;
    background-color: #323844;
}

.right-bottom-text {
    color: #B0B8D8;
    font-size: .8em;
    margin: 1.5em;
    line-height: 1.5;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
}

.login-button {
    height: 2.5em;
    width: 100%;
    background-color: #2699f7;
    border-radius: 3.5em;
    margin: 0.5em auto;
    text-align: center;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    user-select: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}

.login-button:hover {
    transform: scale(1.01);
    background-color: #2aa3ff;
}

.login-button:active {
    transform: scale(0.99);
}

/* Футер */
footer {
    border-top: 1px solid rgba(255,255,255,.03);
    background-color: #0f1013;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.footer-element {
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
    cursor: pointer;
}

.footer-element-text { color: #d6dce8; font-size: .87em; }
.footer-element-text:hover { color: #fff; }

.footer-element-icon {
    color: #d6dce8;
    font-size: .8em;
    height: .85em;
    width: .85em;
    display: flex;
    margin-right: 5px;
    align-items: center;
    justify-content: center;
}
/* --- Стили для всплывающего окна Telegram --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Темный фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Чтобы было поверх всего */
    backdrop-filter: blur(3px); /* Легкое размытие фона (опционально) */
}

/* Класс для скрытия окна */
.hidden {
    display: none !important;
}

/* Само белое окно */
/* Само окно */
.popup-content {
    position: relative; /* ← добавили */
    background-color: #ffffff;
    width: 100%;
    max-width: 320px; /* Ширина окна (как на первом скрине) */
    padding: 18px;    /* Уменьшили внутренние отступы */
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Мягкая тень */
    box-sizing: border-box;
    color: #000;
    font-family: Arial, sans-serif;
}

/* Заголовок */
.popup-title {
    font-size: 16px;      /* Уменьшили шрифт, чтобы влезало в одну строку */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 14px;  /* Отступ до слова "Номер телефона" */
    line-height: 1.2;
    white-space: nowrap;  /* Запрещаем перенос строк (чтобы было в одну строку) */
}

.popup-telegram {
    color: #2699f7;
}

/* Подпись над полем ввода */
.popup-label {
    display: block;
    font-size: 14px;      /* Чуть меньше */
    color: #707579;
    margin-bottom: 6px;   /* Маленький отступ до поля */
}

/* Поле ввода */
.popup-input {
    width: 100%;
    padding: 10px 12px;   /* Компактное поле */
    font-size: 15px;
    border: 1px solid #dadce0; /* Серый цвет рамки (как на 1 скрине) */
    border-radius: 6px;   /* Немного скругленные углы */
    box-sizing: border-box;
    outline: none;
    margin-bottom: 14px;  /* Отступ до кнопки */
    color: #000;
    transition: border-color 0.2s ease;
}

/* Эффект при клике на поле (синяя рамка, как на вашем 2 скрине) */
.popup-input:focus {
    border-color: #2699f7; 
}

/* Кнопка "Продолжить" */
.popup-btn {
    width: 100%;
    background-color: #2699f7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;      /* Компактная кнопка */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-btn:hover {
    background-color: #2aa3ff;
}

/* ============================================ */
/* 🔔 Всплывающая плашка (toast)                */
/* ============================================ */
.toast-container {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.toast {
    position: relative;
    background: #ffffff;
    color: #1c1c1e;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Хвостик-стрелочка сверху */
.toast::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #ffffff;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #ff6a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    /* html без фона — он не должен перекрывать картинку */
    html {
        background: #0e0f12;
    }

    /* Картинка прямо на body */
    body {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)),
            url('img/bg-mobile.png');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        background-attachment: fixed;   /* картинка фиксируется, не скроллится */
    }

    /* Убираем чёрные фоны, чтобы картинка просвечивала */
    .column.left,
    .column.right {
        background-color: transparent;
    }

    /* Прячем старый контейнер с картинкой — он больше не нужен */
    .image-container {
        display: none;
    }

    /* Стек колонок */
    .container {
        flex-direction: column;
    }

    .left-column-list-container {
        padding: 2em 1em;
    }

    /* Футер делаем полупрозрачным + блюр */
    footer {
        background-color: rgba(15, 16, 19, 0.85);
        backdrop-filter: blur(4px);
    }
}