/* Стили для контейнера user */
.user-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 105, 180, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0);
    opacity: 0;
    z-index: 10;
}

/* Когда контейнер user активен */
.user-container.active {
    transform: scale(1);
    opacity: 1;
}

/* Стили для контейнера signin */
.signin-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(135, 206, 250, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0);
    opacity: 0;
    z-index: 11;
}

/* Когда контейнер signin активен */
.signin-container.active {
    transform: scale(1);
    opacity: 1;
}

/* Стили для контейнера signup */
.signup-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(144, 238, 144, 0.9); /* Светло-зеленый цвет */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0);
    opacity: 0;
    z-index: 12;
}

/* Когда контейнер signup активен */
.signup-container.active {
    transform: scale(1);
    opacity: 1;
}

/* Стили для заголовков окон */
.user-header, .signin-header, .signup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 18px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
}

.user-header {
    background: #ff69b4;
    color: white;
}

.signin-header {
    background: #87cefa;
    color: black;
}

.signup-header {
    background: #90ee90;
    color: black;
}

/* Основной контейнер для содержимого */
.user-main, .signin-main, .signup-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

/* Контейнер для текста приветствия */
.content-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #333;
}

/* Поля ввода */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 2px solid #ff69b4;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #ff1493;
    outline: none;
}

/* Контейнер для капчи */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

#captcha-check {
    margin-right: 10px;
}

/* Кнопки */
button {
    padding: 10px 20px;
    font-size: 16px;
    background: #ff1493;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #ff69b4;
}

/* Секция для проверки кода */
#verification-section {
    display: none;
    margin-top: 20px;
}

#verification-code {
    width: 80%;
    padding: 10px;
    border: 2px solid #ff69b4;
    border-radius: 8px;
    margin-top: 10px;
}

#complete-btn {
    margin-top: 10px;
}

/* Сообщения об ошибках и успехах */
.response-message {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: red;
}

/* Для успешных сообщений */
.response-message.success {
    color: green;
}

/* Кнопка закрытия */
.close-user, .close-signin, .close-signup {
    background: #ffffff;
    border: none;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.close-user:hover, .close-signin:hover, .close-signup:hover {
    background: rgba(200, 200, 200, 0.5);
}

/* Текст login/reg */
.login-reg {
    position: fixed;
    top: 3%;
    left: 3%;
    font-size: 20px;
    color: #D5FF61;
    text-decoration: underline;
    cursor: pointer;
    z-index: 12;
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 1200px), (max-width: 768px) {
    .user-header, .signin-header, .signup-header {
        font-size: 13px;
        padding: 4px;
    }

    .user-main, .signin-main, .signup-main {
        padding: 2px;
    }

    .content-title {
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 14px;
    }

    .close-user, .close-signin, .close-signup {
        font-size: 10px;
        padding: 5px;
    }

    .login-reg {
        font-size: 16px;
        bottom: 5%;
        right: 5%;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .response-message {
        font-size: 14px;
    }
}

/* Медиазапросы для горизонтального режима */
@media (max-width: 1200px) and (orientation: landscape),
       (max-width: 768px) and (orientation: landscape) {
    .user-header, .signin-header, .signup-header {
        font-size: 13px;
        padding: 4px;
    }

    .user-main, .signin-main, .signup-main {
        padding: 2px;
    }

    .content-title {
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 14px;
    }

    .close-user, .close-signin, .close-signup {
        font-size: 10px;
        padding: 5px;
    }

    .login-reg {
        font-size: 16px;
        bottom: 5%;
        right: 5%;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .response-message {
        font-size: 14px;
    }
}
