/* Основные стили */
body {
    background: #EBEBEC;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* Логотип */
header {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background: #FFFFFF;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.logo {
    width: 200px;
}

/* Кнопка выхода */
.logout-button {
    display: block;
    margin: 20px auto;
    background: #E74C3C;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s;
    text-align: center;
    width: fit-content;
}

.logout-button:hover {
    background: #C0392B;
    transform: scale(1.1);
}

/* Основные ссылки */
.link {
    display: block;
    width: 50%;
    margin: 15px auto;
    padding: 15px 15px;
    background: #8d3b3f;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.2s;
    text-align: center;
}

.link:hover {
    background: #a52a2a;
    transform: scale(1.1);
}

/* Затемнение фона */
#myfond_gris {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Всплывающее окно */
.Elmavariants {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Анимация при появлении */
.Elmavariants.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Кнопки внутри всплывающего окна */
.mymagicoverbox_fermer span a {
    display: block;
    padding: 12px;
    background: #a36265;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    border-radius: 6px;
    transition: background 0.3s ease;
    text-align: center;
}

.mymagicoverbox_fermer span a:hover {
    background: #a52a2a;
}

/* Футер */
footer {
    margin-top: 30px;
    padding: 15px;
    background: #FFFFFF;
    font-size: 16px;
    color: #333;
    text-align: center;
    width: 100%;
}

/* Центрированная форма входа */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container h2 {
    color: black;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background: #8d3b3f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

button:hover {
    background: #a52a2a;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .link {
        width: 90%;
    }
    
    .logout-button {
        display: block;
        text-align: center;
        margin: 20px auto;
    }
    
    .Elmavariants {
        width: 90%;
    }
    
    .login-container {
        width: 90%;
    }
}