/* ========================================================
   Файл: modules/mod_login/assets/css/login.css
   Версия: 2.1.0
   Последнее изменение: 06.06.2026 22:00
   Автор: Alexander K <kacno@ya.ru>
   ======================================================== */
/* ИСТОРИЯ ИЗМЕНЕНИЙ:
   2.1.0 (06.06.2026 22:00) - Добавлены стили для кнопки и выпадающего меню
   2.0.0 (06.06.2026 19:30) - Предыдущая версия
   ======================================================== */

/* ===== КНОПКА ВХОДА ===== */
.user-login {
    display: inline-flex;
    align-items: center;
}

/* Остальные стили модуля (кнопки, форма) сохранены без изменений */
.user-login .user-btn, .user-session-info .user-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    height: 24px;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-modal-overlay.active {
    display: flex !important;
}

.login-container {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.login-side {
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 28px;
    color: #1a3a5f;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.form-label {
    position: absolute;
    left: 12px;
    top: -8px;
    background: white;
    padding: 0 4px;
    font-size: 12px;
    color: #239cec;
}

.show-password {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #239cec;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.login-button:hover {
    background: #1a7bc9;
}

.options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .login-side {
        padding: 20px;
    }
    .login-title {
        font-size: 24px;
    }
}