/* 🌌 Обнуление отступов и базовая прозрачность */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  background: transparent;
  overflow-x: hidden;
}

/* 🌠 Анимированное звёздное небо */
.star-background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url('/static/img/stars1.png') repeat;
  background-size: 1000px;
  animation: moveStars 120s linear infinite;
  z-index: -1;
}

@keyframes moveStars {
  0% { background-position: 0 0; }
  100% { background-position: -2000px 2000px; }
}

/* 🔷 Контейнер регистрации / медитации */
.register-container {
  max-width: 700px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 20px #ffcc66;
  backdrop-filter: blur(4px);
}

/* 🌀 Иконка */
.register-icon {
  width: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px #ffcc66);
}

/* ✨ Заголовок */
h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffcc66;
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

/* 📝 Метка поля */
label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* 🧭 Поля ввода */
input[type="text"] {
  padding: 12px;
  font-size: 1.1em;
  width: 85%;
  margin: 15px 0;
  border-radius: 12px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  outline: none;
}

/* ✧ Особое свечение для поля Key ID */
input[name="key_id"] {
  border: 2px solid #ffcc66;
  box-shadow: 0 0 8px #ffcc66, 0 0 16px rgba(255, 204, 102, 0.5);
  font-weight: bold;
  letter-spacing: 1px;
}

/* ⚠️ Сообщение об ошибке */
.error-message {
  color: #ff6666;
  margin-top: 10px;
  font-size: 0.95em;
  text-shadow: 0 0 5px rgba(255, 102, 102, 0.3);
}

/* 🔘 Кнопка */
button {
  padding: 12px 26px;
  font-size: 1.1em;
  background: #ffcc66;
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #ffe38d;
  box-shadow: 0 0 12px #ffcc66;
  transform: scale(1.05);
}

/* 📜 Подпись */
.note {
  margin-top: 20px;
  font-size: 0.9em;
  color: #ccc;
}

/* 🌟 Ссылка на медитацию с пульсацией */
.no-name {
  margin-top: 20px;
  font-size: 0.95em;
}

.no-name a {
  color: #ffcc66;
  text-decoration: none;
  font-weight: bold;
  animation: pulse-glow 2.5s infinite;
  transition: text-shadow 0.3s ease;
}

.no-name a:hover {
  color: #ffe699;
  text-shadow: 0 0 8px #ffcc66;
}

/* ✨ Анимация пульсации */
@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 4px #ffcc66, 0 0 10px rgba(255, 204, 102, 0.3);
  }
  50% {
    text-shadow: 0 0 8px #ffcc66, 0 0 20px rgba(255, 204, 102, 0.6);
  }
  100% {
    text-shadow: 0 0 4px #ffcc66, 0 0 10px rgba(255, 204, 102, 0.3);
  }
}

/* 🔙 Кнопка назад */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #ffcc66;
  text-decoration: none;
  font-size: 1em;
}

.back-button:hover {
  text-decoration: underline;
}

/* 🎧 Медитационная инструкция */
.meditation-instruction {
  font-size: 0.95em;
  margin: 20px 0;
  color: #ddd;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   📱 МОБИЛЬНАЯ ВЕРСИЯ (APP MODE)
   ───────────────────────────────────────────── */
@media screen and (max-width: 768px) {

  .register-container {
    margin: 40px 16px;
    padding: 24px 18px;
    max-width: 100%;
    border-radius: 14px;
  }

  .register-icon {
    width: 90px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  label {
    font-size: 1rem;
  }

  input[type="text"] {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
  }

  button {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }

  .note,
  .no-name,
  .meditation-instruction {
    font-size: 0.85rem;
  }

  .back-button {
    position: static;
    display: block;
    margin: 20px auto 0;
    text-align: center;
  }

}