:root {
  --primary: #2b5876;
  --accent: #ff6b6b;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: 1px solid rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-color);
  font-weight: 700;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}
ul {
  list-style: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.auth-section {
  padding: 120px 0 60px;
  display: flex;
  justify-content: center;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.floating-wrapper {
  position: absolute;
  width: 120px;
  will-change: transform;
}
.floating-item {
  width: 100%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
  animation: floatBob 6s ease-in-out infinite;
}

@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(22deg);
  }
}

.layer-deep {
  z-index: -2;
}
.layer-deep .floating-item {
  width: 50px;
  opacity: 0.4;
  filter: blur(4px);
  animation-duration: 4s;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Фиксированная высота для стабильности */
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-wrapper {
  position: relative; /* Важно для абсолютного позиционирования детей */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center; /* Центрирует nav-menu по середине */
  align-items: center;
  height: 100%;
}

/* --- ЛОГОТИП (ЖЕСТКО СЛЕВА) --- */
.logo {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-menu-center {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: #2c3e50;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 50px;
  transition: 0.3s all ease;
  white-space: nowrap;
  position: relative;
}

.nav-link.active {
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.05);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: 0.3s;
}

.nav-link:not(.active):hover::after {
  width: 100%;
}

.btn-marketplace {
  color: #9c21a6 !important;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  border: 2px solid #9c21a6;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-marketplace:hover {
  background: #9c21a6;
  color: white !important;
}

.nav-auth-right {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-link {
  font-weight: 700;
  font-size: 13px;
  color: #2c3e50;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-reg {
  background-color: #2c3e50;
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-reg:hover {
  background-color: #3e5871;
  transform: translateY(-2px);
}

.auth-card {
  width: 100%;
  height: 600px;
  width: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.auth-col-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}
.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Формы */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1; /* Растягивает форму на всю высоту */
}
.auth-form.active {
  display: flex;
}

/* Заполнитель для входа (чтобы выровнять высоту) */
.login-spacer {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: 20px;
}
.login-icon-large {
  font-size: 60px;
  margin-bottom: 15px;
}

/* Поля ввода */
.input-group {
  position: relative;
}
.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.6;
}
.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  outline: none;
  transition: 0.3s;
}
.input-group input:focus {
  background: #fff;
  border-color: var(--accent);
}

/* Переключатель типа клиента */
.client-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.switch-label {
  flex: 1;
  cursor: pointer;
}
.switch-label input {
  display: none;
}
.switch-box {
  display: block;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  transition: 0.3s;
}
.switch-label input:checked + .switch-box {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Бонус */
.bonus-alert {
  background: rgba(255, 107, 107, 0.1);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #d63031;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Кнопка */
.btn-submit {
  background: var(--accent);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto; /* Прижимает к низу */
}
.form-options {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* Toggle */
.client-type-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 10px;
}
.client-type-toggle label {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: 0.3s;
}
.client-type-toggle input {
  display: none;
}
.client-type-toggle label:has(input:checked) {
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  font-weight: 700;
}

.bonus-info {
  background: rgba(255, 107, 107, 0.1);
  padding: 15px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-auth {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}

.main-footer {
  background: #ffffff;
  padding: 30px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
  position: relative;
  z-index: 10;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
