


.content {
  position: relative;
  z-index: 3;
  padding: 20px;
}

/* ==== КАРТОЧКА РЕГИСТРАЦИИ ==== */
.login-container {
  margin: 120px auto;
  max-width: 450px;
  padding: 35px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0,0,0,0.8);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 20px;
  color: #00c3ff;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  transition: 0.3s ease;
}

.form-group input:focus {
  outline: none;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(0,191,255, 0.8);
  box-shadow: 0 0 8px rgba(0,191,255, 0.7),
              0 0 16px rgba(0,191,255, 0.5),
              0 0 32px rgba(0,191,255, 0.3);
}

.form-group:focus-within label {
  color: rgba(0,191,255, 1);
  text-shadow: 0 0 5px rgba(0,191,255, 0.8);
  transition: 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ==== КНОПКА РЕГИСТРАЦИИ ==== */
.buy-button {
  display: inline-block;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(135deg, #00ffe7, #a100ff);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite alternate;
  transition: transform 0.3s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.buy-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,191,255,0.5);
}

/* ==== ССЫЛКА НА ВХОД ==== */
.register-link {
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #00c3ff;
  text-decoration: none;
}

.hint {
  margin-top: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
}

.hint a {
  color: #00c3ff;
  text-decoration: none;
  font-weight: 500;
}

.hint a:hover {
  text-shadow: 0 0 6px rgba(0, 195, 255, 0.7);
}

/* ==== УСПЕХ И ОШИБКА ==== */
.success, .error {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 8px;
}

.success {
  background-color: rgba(0, 255, 144, 0.1);
  color: #00ff90;
  border: 1px solid rgba(0, 255, 144, 0.3);
  box-shadow: 0 0 8px rgba(0, 255, 144, 0.2);
}

.error {
  background-color: rgba(255, 0, 0, 0.15);
  color: #ff4b4b;
  border: 1px solid rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
}

/* ==== МОДАЛЬНОЕ ОКНО ==== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal.fadeIn {
  opacity: 1;
  pointer-events: auto;
}

.modal.fadeOut {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: rgba(15, 22, 30, 0.9);
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.3);
  border: 1px solid #00c3ff;
  text-align: center;
  width: 360px;
  max-width: 90%;
  color: #fff;
  position: relative;
  animation: popIn 0.3s ease;
}

.modal-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #00c3ff;
}

.modal-content p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #ccc;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  transition: 0.3s ease;
}

.modal-content input[type="text"]:focus {
  outline: none;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(0,191,255, 0.8);
  box-shadow: 0 0 8px rgba(0,191,255, 0.7),
              0 0 16px rgba(0,191,255, 0.5),
              0 0 32px rgba(0,191,255, 0.3);
}

.modal-content button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #00c3ff, #00ffae);
  border: none;
  border-radius: 10px;
  color: #0f1a24;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.modal-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #00c3ff99;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  color: #00c3ff;
  cursor: pointer;
  transition: 0.3s ease;
  user-select: none;
}

.close-button:hover {
  color: #00ffee;
  transform: scale(1.2);
}

.error-inside {
  background-color: rgba(255, 0, 0, 0.15);
  color: #ff4b4b;
  border: 1px solid rgba(255, 0, 0, 0.4);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
  text-align: center;
}
.hint-username {
  margin-top: 5px;
  font-size: 13px;
  color: #ff8080;
  text-align: left;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.hint-username.hidden {
  opacity: 0;
  pointer-events: none;
}

.hint-username.fadeIn {
  opacity: 1;
}

.hint-username.fadeOut {
  opacity: 0;
}
.hint-password {
  margin-top: 5px;
  font-size: 13px;
  color: #ff8080;
  text-align: left;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.hint-password.hidden {
  opacity: 0;
  pointer-events: none;
}

.hint-password.fadeIn {
  opacity: 1;
}

.hint-password.fadeOut {
  opacity: 0;
}
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 40px; /* место под иконку */
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #ccc;
  font-size: 18px;
  user-select: none;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #00c3ff;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 22px;
  height: 22px;
  stroke: #ccc;
  transition: stroke 0.2s ease;
}

.eye-icon:hover {
  stroke: #00c3ff;
}

.eye-icon.hidden {
  display: none;
}


@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .buy-button {
    padding: 10px 30px;
    font-size: 16px;
  }

  .modal-content {
    width: 90%;
    padding: 25px 20px;
  }
}