:root {
    --primary: #075e54;
    --accent: #25d366;
    --bg-chat: #e5ddd5;
    --msg-sent: #dcf8c6;
    --msg-received: #ffffff;
    color-scheme: light !important;
}

* { box-sizing: border-box; }
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Запрещаем общий скролл страницы */
}
body { 
    display: flex; 
    flex-direction: column;
    /*overflow: hidden; */
    transition: height 0.2s ease-out; /* Смягчит рывок при скрытии клавиатуры */
    background: #dadbd3;
    font-family: 'Segoe UI', sans-serif;
    
}

.auth-footer {
    margin-top: 20px;
    font-size: 12px;
}

/* Контейнер на весь экран */
#auth-screen {
    display: flex; /* Переключается на none через JS */
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    background: linear-gradient(135deg, #07235e 0%, #122f8c 100%);
    padding: 20px;
}

/* Карточка формы */
.auth-card {
    /*background: white;*/
    padding: 30px;
    border-radius: 16px;
    /*box-shadow: 0 10px 25px rgba(0,0,0,0.2);*/
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: white;
}
.auth-card a{
    color: white;
}

.auth-card h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

/* Стили полей ввода */
.auth-group {
    display: flex;
    flex-wrap: wrap;    /* Позволяет элементам переноситься на новую строку */
    /*flex-direction: column;*/
    gap: 15px;
    margin-bottom: 10px;
}

.auth-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-group input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.auth-buttons{
    display: flex;
    gap: 10px;
    align-items: center;
}
.auth-buttons button{
    text-align: center;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.2s;
}

.auth-buttons button:hover {
    filter: brightness(0.9);
}

#loginBtn {
    background-color: #2583d3;
    color: white;
    border: 2px solid #0345bd;
}

#registerBtn{
    background-color: #2583d3;
    color: white;
    border: 2px solid #0345bd;
}

#captcha_form{
    display: flex;
}
#captcha-img{
    border-radius: 5px;
}




/* Адаптив для мобильных */
@media (max-width: 600px) {
    header {
        padding: 8px 10px;
        font-size: 13px;
    }
}



@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




/* --- ADAPTIVE --- */

/* --- ИСПРАВЛЕНИЕ ЦЕНТРИРОВАНИЯ НА ПК --- */
@media (min-width: 800px) {

}


/* Mobile Mode */
@media (max-width: 799px) {
    .header-left { flex-direction: column; align-items: flex-start; gap: 5px; }
    .room-label { font-size: 12px; }
    .btn-send { padding: 10px; }

}


@media screen and (max-width: 500px) {
    .btn-text {
        display: none; /* Текст исчезает */
    }
}


/* Отключаем любые системные фильтры инверсии, если браузер их поддерживает */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: white !important;
    color: black !important;
  }
}