/* 🌆 Фонове зображення */
#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("amsterdam-day.jpg") no-repeat center center fixed;
  background-size: cover;
  filter: brightness(0.6) blur(1px);
  z-index: -1;
}

/* 🔲 Обгортка */
.wrap {
  position: relative;
  width: 100%;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}
.topbar .brand {
  font-size: 18px;
  color: white;
  text-decoration: none;
}

/* 📋 Карта реєстрації */
.register-card {
  max-width: 400px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  color: white;
}

/* Заголовок */
.register-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* 🔴 Поля */
.register-card input[type="email"],
.register-card input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
}

.register-card input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* ⚠️ / ✅ Повідомлення */
.error-box,
.ok-box {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 13px;
  border-radius: 6px;
}

.error-box {
  background: rgba(255, 0, 0, 0.15);
  color: #ffaaaa;
}

.ok-box {
  background: rgba(0, 255, 0, 0.1);
  color: #aaffaa;
}

/* 🔘 Кнопки */
#registerBtn,
.btn-google {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

#registerBtn {
  background: #2563eb;
  color: white;
}

#registerBtn:hover {
  background: #1e40af;
}

.btn-google {
  background: white;
  color: #111;
  font-weight: bold;
}

.btn-google:hover {
  background: #e5e5e5;
}

/* 🔘 Сучасний перемикач */
.toggle-group {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin-right: 12px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 22px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: white;
  left: 2px;
  bottom: 2px;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #22c55e;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* 🌐 Terms текст */
.terms-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* 🔗 Посилання */
a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 📱 Адаптивність */
@media (max-width: 480px) {
  .register-card {
    margin: 20px;
    padding: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.spinner {
  border: 3px solid #ccc;
  border-top: 3px solid white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #444;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px;
  margin: 10px auto 0;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.btn-google:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
