/* modal.css */

.modal-overlay {
    display: none;
    /* Скрыто по умолчанию. Вашему JS нужно будет переключать это свойство. */
    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;
    /* Убедитесь, что модальное окно находится поверх всего */
}

.modal {
    background-color: #242f39;
    /* Темный фон, похожий на `muted` или `accent` в Tailwind */
    padding: 2rem;
    border-radius: 0.5rem;
    /* Скругленные углы */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    /* Мягкая тень */
    max-width: 500px;
    width: 90%;
    /* Адаптивная ширина */
    position: relative;
    text-align: center;
    color: #dadada;
    /* Цвет текста, похожий на `foreground` */
    font-family: Arial, sans-serif;
    /* Общий шрифт без засечек */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dadada;
    /* Светло-серый цвет */
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: #a9cf54;
    /* Цвет ссылки при наведении */
}

.modal-logo {
    margin-bottom: 1rem;
}

.modal-logo img {
    display: block;
    /* Для центрирования с `margin: auto` */
    margin: 0 auto;
}

.modal-title {
    font-size: 1.875rem;
    /* Соответствует `text-3xl` */
    font-weight: 700;
    /* Соответствует `font-bold` */
    margin-bottom: 0.75rem;
    /* Соответствует `mb-3` */
    color: #dadada;
}

.modal-text {
    font-size: 1rem;
    /* Соответствует `text-base` */
    line-height: 1.5rem;
    /* Соответствует `leading-relaxed` */
    color: #9ca3ab;
    /* Цвет текста, похожий на `muted-foreground` */
    margin-bottom: 1.5rem;
}

.auth-button {
    background-color: #a9cf54;
    /* Цвет ссылки/акцента */
    color: #1d242d;
    /* Темный текст на светлой кнопке */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    /* Соответствует `rounded` */
    font-size: 1rem;
    font-weight: 600;
    /* Соответствует `font-semibold` */
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    /* Плавный переход при наведении */
}

.auth-button:hover {
    background-color: #92a525;
    /* Немного темнее зеленый при наведении */
}

/* Базовая адаптивность для маленьких экранов */
@media (max-width: 640px) {
    .modal {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
        /* Соответствует `text-2xl` */
    }

    .modal-text {
        font-size: 0.875rem;
        /* Соответствует `text-sm` */
    }

    .auth-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}