/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Настройка canvas */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #121212;
    color: white;
    font-family: Arial, sans-serif;
    position: relative; /* Чтобы контент был поверх canvas */
    z-index: 1; /* Убедитесь, что контент выше canvas */
}

canvas {
    position: fixed; /* Фиксируем canvas на фоне */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Помещаем canvas позади всех элементов */
}


/* Контейнер шапки сайта */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стиль шапки */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 40px;
    height: 40px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #7289da;
    margin-bottom: 2px;
}

.logo-subtext {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 38px;
}

.logo-link {
    display: inline-block;
    text-decoration: none; /* убрать подчёркивание */
    color: inherit; /* наследует цвет текста от родителя */
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8; /* эффект при наведении (можно заменить на другой) */
    text-decoration: none; /* убираем подчёркивание */
}

/* Убрать стандартный синий цвет у ссылки */
.logo-link:visited,
.logo-link:active,
.logo-link:focus {
    color: inherit;
    outline: none; /* убирает обводку при фокусе */
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #dcddde;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    letter-spacing: .01em;
    line-height: 1.2;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #7289da;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.auth-buttons {
    display: flex;
}

.btn {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn {
    background-color: #40444b;
    color: #ffffff;
}

.login-btn:hover {
    background-color: #5865f2;
}

.signup-btn {
    background-color: #5865f2;
    color: #ffffff;
}

.signup-btn:hover {
    background-color: #40444b;
}

.logout-btn {
    background-color: #40444b;
    color: #ffffff;
}

.logout-btn:hover {
    background-color: #5865f2;
}

.auth-buttons a {
    text-decoration: none;
    color: inherit;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Располагаем элементы в столбец */
        align-items: flex-start; /* Выравниваем по левому краю */
    }

    .nav-links {
        margin-top: 10px; /* Отступ между строками */
        width: 100%; /* Занимаем всю ширину контейнера */
    }

    .auth-buttons {
        margin-top: 10px; /* Переносим кнопки во второй ряд */
        width: 100%; /* Занимаем всю ширину контейнера */
        justify-content: center; /* Центрируем кнопки */
    }

    .btn {
        margin-left: 0; /* Убираем горизонтальный отступ */
        margin-bottom: 10px; /* Добавляем вертикальный отступ */
    }
}


/* Стили для страницы контактов */
.contacts {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Заголовок */
.contacts h1 {
    font-size: 24px;
    color: #7289da;
    margin-bottom: 20px;
}

/* Текст контактов */
.contacts p {
    font-size: 18px;
    color: #dcddde;
    margin: 10px 0;
}

/* Ссылки */
.contacts a {
    text-decoration: none;
    color: #f2f3f4;
    transition: color 0.3s ease;
}

.contacts a:hover {
    color: #7289da;
}

/* Стили для форм входа и регистрации */

.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: rgba(47, 49, 54, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Floating labels стили */
.floating {
    position: relative;
    margin-bottom: 25px;
    text-align: left; /* Для правильного позиционирования label */
}

.floating label {
    position: absolute;
    top: 13px;
    left: 12px;
    color: #b9bbbe;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.floating input {
    width: 100%;
    padding: 15px 12px 5px 12px;
    background: #36393f;
    border: 2px solid transparent;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.floating input:focus {
    outline: none;
    border-color: #7289da;
    box-shadow: 0 0 0 2px rgba(114, 137, 218, 0.2);
}

/* Состояния floating label */
.floating input:focus + label,
.floating input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #7289da;
    background: rgba(47, 49, 54, 0.95);
    padding: 0 5px;
}

/* Заголовок формы */
.auth-form h2 {
    font-size: 24px;
    color: #7289da;
    margin-bottom: 20px;
}

/* Сообщения об ошибках */
.error-message {
    color: #ff6b6b;
    margin: -10px 0 15px;
    font-size: 14px;
}

/* стили кнопок*/
.auth-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-form .login-btn {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 15px;
    background-color: #40444b;
    color: white;
}

.auth-form .login-btn:hover {
    background-color: #5865f2;
}

.auth-form .signup-btn {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 15px;
    background-color: #5865f2;
    color: white;
}

.auth-form .signup-btn:hover {
    background-color: #40444b;
}

/* Ссылки */
.auth-form p a {
    color: #5865f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-form p a:hover {
    color: #7289da;
}

/* Дополнительные элементы */
.form-footer {
    margin: 10px 0 20px;
    font-size: 14px;
}

.auth-redirect {
    margin-top: 15px;
    font-size: 14px;
}










