* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 80, 88, 0.6) transparent; /* thumb и track */
}

body {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    color: white;
    font-family: 'Lato', Arial, sans-serif; /* Lato вместо Arial */
    position: relative;
    z-index: 1;
}

/* Кастомный скролбар  (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px; /* Толщина скроллбара */
  height: 8px; /* Для горизонтального скролла (если нужен) */
}

::-webkit-scrollbar-track {
  background: transparent; /* Прозрачный трек */
}

::-webkit-scrollbar-thumb {
  background: rgba(78, 80, 88, 0.6);
  border-radius: 4px; /* Закругление */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 80, 88, 0.8); /* Чуть ярче при наведении */
}



.loader-1 {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 75px;
    display: inline-block;
    vertical-align: middle;
}

.loader-1 .loader-outter {
    position: absolute;
    border: 4px solid #f50057;
    border-left-color: transparent;
    border-bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: loader-1-outter 1s cubic-bezier(.42, .61, .58, .41) infinite;
}

.loader-1 .loader-inner {
    position: absolute;
    border: 4px solid #f50057;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    border-right: 0;
    border-top-color: transparent;
    animation: loader-1-inner 1s cubic-bezier(.42, .61, .58, .41) infinite;
}

@keyframes loader-1-outter {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-1-inner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}


/* Звездный параллакс */
#stars, #stars2, #stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#stars {
    width: 1px; height: 1px;
    background: transparent;
    box-shadow:
        100px 200px #FFF, 300px 500px #FFF, 800px 1200px #FFF, 1200px 900px #FFF,
        150px 400px #FFF, 600px 1100px #FFF, 200px 300px #FFF, 900px 600px #FFF,
        400px 800px #FFF, 1100px 1400px #FFF, 500px 1000px #FFF;
    animation: animStar 50s linear infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 1px; height: 1px;
    background: transparent;
    box-shadow: 100px 200px #FFF, 300px 500px #FFF, 800px 1200px #FFF;
}

#stars2 {
    width: 2px; height: 2px;
    background: transparent;
    box-shadow:
        400px 700px #FFF, 900px 1400px #FFF, 200px 1100px #FFF, 700px 1600px #FFF;
    animation: animStar 100s linear infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 2px; height: 2px;
    background: transparent;
    box-shadow: 400px 700px #FFF, 900px 1400px #FFF;
}

#stars3 {
    width: 3px; height: 3px;
    background: transparent;
    box-shadow:
        200px 1000px #FFF, 1100px 1600px #FFF, 600px 1300px #FFF;
    animation: animStar 150s linear infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 3px; height: 3px;
    background: transparent;
    box-shadow: 200px 1000px #FFF;
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}


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


.navbar {
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 10, 0.5);
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  padding: 20px 0;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


.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: 22px;
    font-weight: 800;
    color: #7289da;
    position: relative;
    margin-bottom: 2px;
    padding-bottom: 4px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7289da, #a0e7ff);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineExpand 3s ease-in-out infinite alternate;
}

@keyframes lineExpand {
    to {
        transform: scaleX(1);
    }
}

.logo-subtext {
    font-size: 12px;
    color: #a0e7ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #a0e7ff; }
    to { text-shadow: 0 0 15px #a0e7ff, 0 0 20px #7289da; }
}

.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 {
    margin: 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
    text-decoration: none;
    background: transparent;
    border: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

/* Градиентное подчёркивание (анимированное) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #06b6d4, #6366f1, #a855f7);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover {
    color: #06b6d4;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.nav-links a:focus {
    outline: 2px solid rgba(6, 182, 212, 0.5);
    outline-offset: 2px;
}

.auth-buttons {
    display: flex;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px; /* скруглённые углы */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}


.reward-btn {
    background:
        radial-gradient(ellipse at top left, #f0f0f0 0%, #e0e0e0 30%, #d0d0d0 70%, #c0c0c0 100%);
    box-shadow:
        0 10px 30px rgba(192,192,192,0.5),
        inset 0 2px 6px rgba(255,255,255,0.9),
        inset 0 -2px 6px rgba(96,96,96,0.4),
        0 0 20px rgba(255,255,255,0.3);
    color: #2d2d2d !important;
}

.reward-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.reward-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(25, 28, 31, 0.95);
    color: #e0e5ec;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-top: 6px;
}

/* Показываем при наведении */
.reward-tooltip-wrapper:hover .reward-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.login-btn {
    background-color: #40444b;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-btn:hover {
    background-color: #5865f2;
    border-color: #5865f2;
}

.signup-btn {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
}
.signup-btn:hover {
    background: linear-gradient(135deg, #40444b, #5865f2);
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3);
}

.logout-btn {
    background-color: #2c2f33;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
.logout-btn:hover {
    background-color: #ff6b6b;
    color: white;
}

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


/* Стили для форм входа и регистрации */
.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: rgba(10, 10, 10, 0.4);
    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;
}
.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Floating input fields */
.floating input {
    width: 100%;
    padding: 15px 12px 5px 12px;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    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 states */
.floating input:focus + label,
.floating input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #7289da;
    background: rgba(10, 10, 10, 0.8);
    padding: 0 5px;
}

/* Form title */
.auth-form h2 {
    font-size: 24px;
    color: #7289da;
    margin-bottom: 20px;
}

/* Error messages */
.error-message {
    color: #ff6b6b;
    margin: -10px 0 15px;
    font-size: 14px;
}

/* Button styles */
.auth-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form .login-btn {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    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: rgba(255, 255, 255, 0.15);
}

/* Links */
.auth-form p a {
    color: #8ea1e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-form p a:hover {
    color: #5865f2;
}

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

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


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-left,
    .navbar-right {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links ul {
        justify-content: center;
    }
}







