@font-face {
    font-family: 'Gagalin';
    src: url('fonts/Gagalin-Regular.otf') format('opentype');
}

body {
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Верхняя панель */
.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(30, 30, 30, 0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    animation: slideDown 0.5s forwards;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-family: 'Gagalin', sans-serif;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.premium-badge {
    color: #F6C600; /* Желтый цвет */
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.auth-button-container {
    margin-left: auto;
}

.auth-button {
    background-color: transparent;
    color: #ffffff;
    padding: 10px 15px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.auth-button:hover {
    background-color: #ffffff;
    color: #121212;
    transform: scale(1.05);
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

/* Секция аутентификации */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background-color: rgba(30, 30, 30, 0.8);
}

.auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-title {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-form input {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: border 0.3s;
}

.auth-form input:focus {
    outline: none;
}

.auth-form button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.auth-form button:hover {
    background: linear-gradient(135deg, #218838, #28a745);
    transform: scale(1.05);
}

.register-panel {
    width: 250px;
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.register-panel p {
    margin: 10px 0;
    text-align: center;
}

.register-panel a {
    color: #00c6ff;
    text-decoration: none;
    transition: color 0.3s;
}

.register-panel a:hover {
    color: #0072ff;
}

/* Личный кабинет */
.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background-color: rgba(30, 30, 30, 0.8);
}

.dashboard h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.dashboard p {
    margin: 10px 0;
    text-align: center;
}

.dashboard .logout-button {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dashboard .logout-button:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: scale(1.05);
}

/* Стили для кнопок */
.button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    transform: scale(1.05);
}

/* Стили для активных ссылок */
a {
    color: #00c6ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0072ff;
}

/* Секция видеообзора */
.video-section {
    margin-top: 80px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 10px;
}

/* Информационные секции */
.info-section {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    margin: 40px 0;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.info-section h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.info-section p {
    line-height: 1.6;
}

/* Футер */
.footer {
    background-color: rgba(20, 20, 20, 0.95);
    padding: 20px;
    text-align: center;
    color: #cccccc;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer a {
    color: #00c6ff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer a:hover {
    color: #0072ff;
}
