/* Основные переменные */
:root {
    --text-color: #e6e6e6;
    --header-color: #ee0c6f;
    --bg-color: #000d18;
    --accent-color: #04c5bf;
    --secondary-color: #005351;
    --spacing-small: 5px;
    --spacing-medium: 10px;
    --spacing-large: 20px;
    --border-radius: 10px;
}

/* Сброс стилей */
body {
    font-family: Arial, sans-serif;
    background-color: #000d18;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 14px;
    box-sizing: border-box;
    color: #e6e6e6;
    overflow-y: auto;
}

/* Общие стили */
.container {
    max-width: 1200px;
    margin: auto;
    padding: var(--spacing-large);
}

/* Стиль для логина */
.login-container {
    width: 100%;
    max-width: 400px;
    background-color: #000a12;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #04c5bf;
    margin-bottom: 20px;
}

.logo img {
    width: 250px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 12px;
}


h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ee0c6f;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #04c5bf;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #04c5bf;
    border-radius: 5px;
    background-color: #001a2e;
    color: #e6e6e6;
    font-size: 1rem;
}

.input-group input::placeholder {
    color: #888;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ee0c6f;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ee0c6f;
}

.links {
    margin-top: 20px;
    font-size: 0.9rem;
}

.links a {
    color: #04c5bf;
    text-decoration: none;
    margin: 0 5px;
}

.links a:hover {
    text-decoration: underline;
}

.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #000a12;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.register-logo {
    font-size: 32px;
    font-weight: bold;
    color: #04c5bf; /* Основной цвет Tatzo */
    margin-bottom: 10px;
}

.register-container h1 {
    font-size: 24px;
    color: #ee0c6f; /* Акцентный цвет */
    margin-bottom: 15px;
}

.register-container p {
    color: #e6e6e6;
    font-size: 14px;
    margin-bottom: 20px;
}

.account-type-options {
    display: flex;
    gap: 15px; /* Расстояние между карточками */
    justify-content: center;
}

.account-type-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 180px; /* Фиксированная ширина карточки */
    height: 150px; /* Фиксированная высота карточки */
    padding: 0; /* Убираем внутренние отступы */
    border: 2px solid #04c5bf; /* Цвет границы */
    border-radius: 15px; /* Устанавливаем круглые углы */
    background-color: transparent; /* Прозрачный фон по умолчанию */
    color: #04c5bf; /* Цвет текста */
    transition: all 0.3s ease; /* Плавный переход */
    cursor: pointer;
    box-sizing: border-box; /* Учитываем границы в размерах */
}

.account-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-option .option-content {
    pointer-events: none;
}

.account-type-option h3 {
    font-size: 18px;
    color: #04c5bf;
    margin-bottom: 5px;
}

.account-type-option p {
    font-size: 14px;
    color: #e6e6e6;
}

.account-type-option:hover {
    background-color: rgba(4, 197, 191, 0.1); /* Лёгкая заливка при наведении */
    box-shadow: 0px 0px 10px rgba(4, 197, 191, 0.5); /* Тень при наведении */
}

.account-type-option input[type="radio"] {
    display: none; /* Скрываем радиокнопку */
}

.account-type-option input[type="radio"]:checked + .option-content {
    background-color: #04c5bf; /* Полная заливка при выборе */
    color: #000a12; /* Контрастный цвет текста */
    border-color: #04c5bf;
    box-shadow: 0px 0px 15px rgba(4, 197, 191, 0.8);
    transform: scale(1.05);
    border-radius: 15px; /* Ровные углы при выборе */
}

.option-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.option-content p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.4;
}

.option-content {
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    width: 100%; /* Растягиваем содержимое по ширине карточки */
    height: 100%; /* Растягиваем содержимое по высоте карточки */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Учитываем границы */
    padding: 10px; /* Дополнительные отступы внутри */
    transition: all 0.3s ease;
    border-radius: 15px; /* Ровные углы */
}


.account-type-option input:checked + .option-content h3 {
    color: #ee0c6f;
}

/* Стили для других страниц (ленту, боковую панель и т.д. можно оставить без изменений) */
.sidebar {
    width: 200px;
    background-color: #000911;
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #001a2e;
}

/* ... остальные стили для других страниц */

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .errors {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4c4c;
    color: #ff4c4c;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: left;
    font-size: 14px;
}
.errors ul {
    margin: 0;
    padding-left: 20px;
}

.password-hint {
    margin-top: 5px;
    font-size: 13px;
    color: #888;
    text-align: left;
  }
  
  .hidden {
    display: none;
  }
 
.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #ee0c6f;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 18px;
    margin-bottom: 1px;
}

.form-info p {
    font-size: 14px;  /* ← Чуть меньше */
    color: #04c5bf;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.signup-tag-hint {
  margin: 8px 0 0;
  color: rgba(223, 252, 255, 0.68);
  font-size: 13px;
  line-height: 1.4;
}

.signup-tag-hint::before {
  content: "@";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  color: #04c5bf;
  border: 1px solid rgba(4, 197, 191, 0.35);
  font-size: 12px;
  font-weight: 800;
}

/* === Signup verification modal === */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 5, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-content {
  width: min(92vw, 420px);
  background: #000a12 !important;
  color: #eaffff !important;
  padding: 24px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(4, 197, 191, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.modal-content p {
  margin: 10px 0;
  color: #dffcff;
  line-height: 1.45;
}

.modal-content p:first-of-type {
  color: #04c5bf;
  font-weight: 800;
  font-size: 18px;
}

.modal .close {
  color: rgba(234, 255, 255, 0.72);
  font-size: 22px;
  line-height: 1;
}

.modal .close:hover {
  color: #ffffff;
}

/* === Signup verification modal final === */

.signup-verification-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  box-sizing: border-box;
}

.signup-verification-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 10, 0.78);
  backdrop-filter: blur(7px);
}

.signup-verification-dialog {
  position: relative;
  z-index: 2;

  width: min(92vw, 440px);
  padding: 30px 28px 28px;

  background: #000a12;
  border: 1px solid rgba(4, 197, 191, 0.28);
  border-radius: 22px;

  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.58),
    0 0 26px rgba(4, 197, 191, 0.08);

  text-align: center;
  font-family: "Poppins", sans-serif;
  animation: signupModalIn 0.22s ease;
}

.signup-verification-close {
  position: absolute;
  top: 14px;
  right: 16px;

  width: 30px;
  height: 30px;

  border: none;
  background: transparent;
  color: rgba(234, 255, 255, 0.72);

  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.signup-verification-close:hover {
  color: #ffffff;
}

.signup-verification-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(4, 197, 191, 0.12);
  border: 1px solid rgba(4, 197, 191, 0.28);

  font-size: 28px;
}

.signup-verification-dialog h3 {
  margin: 0 0 12px;
  color: #04c5bf;
  font-size: 22px;
  font-weight: 800;
}

.signup-verification-dialog p {
  margin: 0;
  color: #dffcff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

@keyframes signupModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === Signup language switcher === */

.signup-language-switcher {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 8px;

  background: rgba(0, 10, 18, 0.72);
  border: 1px solid rgba(4, 197, 191, 0.22);
  border-radius: 999px;

  backdrop-filter: blur(10px);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.signup-language-btn {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid transparent;
  border-radius: 50%;

  background: rgba(0, 26, 46, 0.7);
  color: #ffffff;

  font-size: 21px;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.signup-language-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(4, 197, 191, 0.45);
  box-shadow: 0 0 16px rgba(4, 197, 191, 0.22);
  filter: brightness(1.08);
}

.signup-language-btn.active {
  background: rgba(4, 197, 191, 0.18);
  border-color: #04c5bf;

  box-shadow:
    0 0 18px rgba(4, 197, 191, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);

  transform: scale(1.05);
}

@media (max-width: 700px) {
  .signup-language-switcher {
    top: 12px;
    right: 12px;
    gap: 7px;
    padding: 6px;
  }

  .signup-language-btn {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
}