/* ===== Сброс и базовые стили ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #021120;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  background-image: radial-gradient(circle at 30% 20%, rgba(30, 80, 120, 0.2) 0%, transparent 50%);
}

/* ===== Основной контейнер ===== */
.login-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.6s ease-out;
}

/* ===== Картинка над формой ===== */
.login-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-image svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
}

/* ===== Карточка формы ===== */
.login-card {
  width: 100%;
  background: rgba(10, 25, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 36px 32px;
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 40px rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Заголовок ===== */
.login-card h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #aad0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  text-align: center;
  color: rgba(200, 220, 255, 0.7);
  font-size: 14px;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

/* ===== Группы полей ===== */
.input-group {
  margin-bottom: 22px;
  position: relative;
}

.input-group label {
  display: block;
  color: rgba(220, 235, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  padding-left: 4px;
}

.input-group input {
  width: 100%;
  padding: 15px 18px;
  background: rgba(0, 10, 20, 0.6);
  border: 1.5px solid rgba(80, 140, 200, 0.25);
  border-radius: 18px;
  font-size: 16px;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) inset;
}

.input-group input::placeholder {
  color: rgba(160, 190, 220, 0.4);
  font-weight: 300;
}

.input-group input:focus {
  border-color: #3b8aff;
  background: rgba(0, 20, 40, 0.8);
  box-shadow:
    0 0 0 4px rgba(59, 138, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.3) inset;
}

/* ===== Кнопка ===== */
.login-btn {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  border: none;
  border-radius: 18px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 20px -5px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 28px -8px rgba(37, 99, 235, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
}

.login-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 8px 16px -5px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* ===== Дополнительные ссылки ===== */
.login-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(180, 200, 230, 0.7);
}

.login-footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 4px 2px;
}

.login-footer a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ===== Анимация появления ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Адаптив ===== */
@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
    border-radius: 28px;
  }

  .login-card h2 {
    font-size: 24px;
  }

  .login-image svg {
    max-width: 240px;
  }

  .login-footer {
    flex-direction: column;
    gap: 10px;
  }
}
