body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(30, 64, 175, 0.18);
}

.login-form {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.login-form-wide {
  width: 420px;
}

.login-form h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: #1e293b;
  text-align: center;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #334155;
}

.login-form input {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.login-form input:focus {
  border-color: #3b82f6;
}

.login-form button {
  height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.login-form button:hover {
  opacity: 0.92;
}

.state-error {
  margin: 0;
  color: #b91c1c;
  font-size: 14px;
}

.state-success {
  margin: 0;
  color: #166534;
  font-size: 14px;
}

.auth-switch {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.auth-switch a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Подсказка под заголовком формы — мелкий нейтральный текст. */
.hint {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Ссылка-кнопка (по дизайну TZ-003 §7): семантически <a>, выглядит как
   основная кнопка формы — чтобы юзер на success-странице понял, куда
   идти дальше. */
.btn-link-primary {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s ease;
}

.btn-link-primary:hover {
  opacity: 0.92;
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
