body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: white;
    max-width: 95%;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border: 1px solid #080808;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%; /* Адаптивная ширина */
}

input[type="text"] {
    padding: 10px;
    margin-bottom: 10px;
    width: calc(100% - 22px); /* Учитываем padding и border */
    border: 1px solid #0e0d0d;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.code-container {
    margin-top: 25px;
}

.auth-code {
    font-size: 25px;
    font-weight: bold;
    border: 1px solid #0c0c0c;
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none; /* Отключаем выделение текста */
    position: relative;
    width: 170px;
}

.remaining-Time {
    font-size: 18px;
    color: #555;
    margin-left: 53px; /* Отступ слева от таймера */
}

.auth-code-hov {
    text-align: left;
}

.qr-code {
    margin-top: 20px;
}

.qr-code img {
    max-width: 210px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #131212;
}

.error-message {
    text-align: center;
    margin-top: 20px;
}

.error-message img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
}

.error-message p {
    font-size: 18px;
    color: #ff0000;
    margin-top: 10px;
}

/* Подсказка при наведении на поле с кодом */
.auth-code-hov::after {
    content: "Скопировать";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.auth-code-hov.copied::after {
    content: "✅Скопировано"; /* Новый текст */
    background-color: rgba(76, 175, 80, 0.8); /* Зелёный фон */
    padding: 2px 10px;
}

.auth-code-hov:hover::after {
    opacity: 1;
}

/* Подсказка при наведении на таймер */
.remaining-Time:hover::after {
    content: "Таймер";
    position: absolute;
    top: 50%; /* Выравниваем по вертикали */
    left: 100%; /* Смещаем вправо от таймера */
    transform: translateY(-50%); /* Корректируем вертикальное выравнивание */
    margin-left: 10px; /* Отступ от таймера */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

/* Стили для логотипа */
.banner {
    margin-top: 20px; /* Отступ сверху */
    margin-bottom: 20px; /* Отступ снизу от логотипа до контейнера */
    justify-content: center;
}

.banner img {
    max-width: 900px; /* Максимальная ширина логотипа */
    height: auto; /* Автоматическая высота для сохранения пропорций */
}