/* 🌐 Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  height: 100vh;
  background: #f9fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 🔵 Градиентный фон */
.bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2761ed55, transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  top: -100px;
  right: -100px;
  filter: blur(80px);
}

/* 📦 Контейнер */
.container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  z-index: 2;
}

/* 🧊 Карточка */
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card h2 {
  margin-bottom: 5px;
  font-size: 26px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

/* ✨ Input с floating label */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  background: transparent;
  transition: 0.2s;
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s;
  background: transparent;
}

.input-group input:focus {
  border-color: #2761ed;
  box-shadow: 0 0 0 3px rgba(39, 97, 237, 0.15);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  background: #fff;
  padding: 0 5px;
  color: #2761ed;
}

/* 🔘 Кнопка */
.card button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2761ed, #4a7bff);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(39, 97, 237, 0.3);
}

/* 🔗 Ссылки */
.link {
  margin-top: 18px;
  font-size: 14px;
}

.link a {
  color: #2761ed;
  text-decoration: none;
  font-weight: 600;
}

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

/* 🔔 Уведомления */
.flash {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
  opacity: 0.95;
}

.flash.error {
  background: #ffe5e5;
  color: #d93025;
  border-left: 4px solid #d93025;
}

.flash.success {
  background: #e5f8ff;
  color: #2761ed;
  border-left: 4px solid #2761ed;
}