﻿/* Подключение шрифта Mazzard */
@font-face {
    font-family: 'Mazzard';
    src: url('/fonts/Mazzard/MazzardH-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mazzard';
    src: url('/fonts/Mazzard/MazzardH-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mazzard';
    src: url('/fonts/Mazzard/MazzardH-SemiBold.ttf') format('truetype');
    font-weight: 600; /* SemiBold */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mazzard';
    src: url('/fonts/Mazzard/MazzardH-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
    font-display: swap;
}

/* Базовые стили для страницы */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(to top right, rgb(197, 211, 225) 0%, rgb(57, 142, 247) 50%, rgb(28, 31, 33) 100%);
    background-attachment: fixed;
    font-family: 'Mazzard', sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Навигация */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    background: transparent;
}

    .navbar-menu a {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 8px 12px;
        white-space: nowrap;
    }

        .navbar-menu a:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

/* Основной контент */
.main-content {
    flex: 1;
    margin-top: 100px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero-секция (главная страница) */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-height: calc(100vh - 100px - 80px);
    padding: 40px 20px;
    gap: 30px;
    font-family: 'Mazzard', sans-serif;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.hero-subtext {
    margin-top: 15px;
    margin-bottom: 50px;
}

    .hero-subtext p {
        font-size: 16px;
        font-weight: 400;
        margin: 2px 0;
        opacity: 0.9;
        white-space: nowrap;
    }

.button-container {
    margin-top: 20px;
}

.hero-image {
    display: none;
    max-width: 500px;
    height: auto;
}

/* Футер */
.footer-custom {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

    .footer-custom a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        margin-left: 10px;
        transition: color 0.3s ease;
    }

        .footer-custom a:hover {
            color: #ffffff;
        }

/* Модальное окно */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.custom-modal {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 30px 40px;
    border-radius: 0;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

    .custom-modal h2 {
        font-size: 24px;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .custom-modal p {
        font-size: 18px;
        margin: 10px 0;
    }

/* Карточка авторизации */
.auth-card {
    background: rgba(28, 31, 33, 0.7); /* чёрный фон с прозрачностью 80% */
    border: none; /* без рамки */
    border-radius: 0; /* острые углы */
    padding: 40px 30px; /* внутренние отступы */
    max-width: 420px; /* фиксированная ширина */
    min-height: 380px; /* минимальная высота */
    margin: 40px auto; /* центрирование */
    display: flex;
    flex-direction: column;
    justify-content: center; /* содержимое по центру */
}

/* Поле ввода */
.form-control {
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

    .form-control:focus,
    .form-control:active {
        background: transparent;
        border: 2px solid #ffffff;
        color: #ffffff;
        outline: none;
        box-shadow: none;
    }

    .form-control:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.form-control-lg {
    padding: 10px 20px;
    font-size: 18px;
}

/* Метка формы */
.auth-card .form-label {
    color: #ffffff;
    font-size: 20px; /* увеличен с 18px */
    font-weight: 500;
    cursor: pointer; /* указатель для кликабельности */
    text-decoration: none; /* без подчёркивания по умолчанию */
}

    .auth-card .form-label:hover {
        text-decoration: underline; /* подчёркивание при наведении */
    }

/* Кнопка */
.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

    .button-outline,
    .button-outline:link,
    .button-outline:visited,
    .button-outline:hover,
    .button-outline:focus,
    .button-outline:active {
        color: #ffffff !important;
        background-color: transparent !important;
        border: 2px solid #ffffff !important;
        outline: none !important;
        text-decoration: none !important;
    }

        .button-outline:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            transform: translateY(-2px);
        }

        .button-outline:focus,
        .button-outline:active {
            outline: none !important;
            box-shadow: none !important;
        }

/* Сообщения (alert) */
.auth-card .alert {
    border-radius: 0;
    border: 2px solid;
    font-size: 18px;
    padding: 10px;
    background: transparent;
}

.auth-card .alert-info {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.auth-card .alert-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.auth-card .alert-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.auth-card .alert-warning {
    background: transparent;
    border-color: #ffc107;
    color: #ffc107;
}

/* Текстовые элементы в карточке */
.auth-card h4,
.auth-card h3,
.auth-card p,
.auth-card a {
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
}

    .auth-card h3 a {
        text-decoration: none;
    }

        .auth-card h3 a:hover {
            text-decoration: underline;
        }

.auth-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 18px;
}

.auth-card .text-warning {
    color: #ffc107 !important;
    font-size: 18px;
}

.auth-card .text-danger {
    color: #dc3545 !important;
    font-size: 18px;
}

/* Таймер (перенос строки) */
.auth-card #timer {
    display: block;
    margin-top: 5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
        min-height: auto;
        margin: 20px 10px;
    }

    .form-control {
        padding: 8px 16px;
        font-size: 16px;
    }

    .form-control-lg {
        padding: 8px 16px;
        font-size: 16px;
    }

    .auth-card .form-label {
        font-size: 18px; /* увеличен с 16px */
        cursor: pointer;
        text-decoration: none;
    }

        .auth-card .form-label:hover {
            text-decoration: underline;
        }

    .auth-card .alert {
        font-size: 16px;
        padding: 8px;
    }

    .button-outline {
        padding: 8px 16px;
        font-size: 16px;
    }

    .auth-card h4,
    .auth-card h3,
    .auth-card p,
    .auth-card a {
        font-size: 16px;
    }

    .auth-card .text-muted,
    .auth-card .text-warning,
    .auth-card .text-danger {
        font-size: 16px;
    }

    .auth-card #timer {
        margin-top: 4px;
    }
}

/* Адаптивность для навигации (планшеты) */
@media (max-width: 992px) {
    .navbar-custom {
        padding: 0 20px;
    }

    .navbar-menu {
        gap: 15px;
    }

        .navbar-menu a {
            font-size: 14px;
            padding: 6px 10px;
        }
}

/* Адаптивность для мобильных устройств (навигация и hero-секция) */
@media (max-width: 768px) {
    .navbar-custom {
        padding: 0 15px;
        height: 60px;
    }

    .navbar-logo {
        height: 30px;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(20, 20, 25, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        gap: 1px;
    }

        .navbar-menu.active {
            display: flex;
        }

        .navbar-menu li {
            width: 100%;
            height: 50px;
            margin: 0;
            padding: 1%;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: stretch;
        }

            .navbar-menu li:last-child {
                border-bottom: none;
            }

        .navbar-menu a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            padding: 0;
            font-size: 16px;
        }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content {
        margin-top: 80px;
        padding: 30px 15px;
    }

    .footer-custom {
        padding: 15px 20px;
        font-size: 12px;
    }

    .hero-section {
        align-items: flex-start;
        text-align: left;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtext p {
        font-size: 14px;
    }
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .navbar-custom {
        padding: 0 10px;
    }

    .main-content {
        padding: 20px 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtext p {
        font-size: 14px;
    }
}

/* Адаптивность для десктопов (hero-секция) */
@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .hero-content {
        max-width: 50%;
        text-align: left;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtext p {
        font-size: 18px;
    }

    .hero-image {
        display: block;
        max-width: 500px;
        height: auto;
    }
}
