/* Единственный файл стилей: без сборки фронтенда и без inline-стилей
   (inline запрещён политикой CSP из app/main.py). */

:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-soft: #111827;
  --card: #151d2b;
  --border: #243146;
  --text: #e8eefc;
  --muted: #93a2bd;
  --accent: #4f8cff;
  --accent-2: #7b5cff;
  --danger: #ff5d5d;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(123, 92, 255, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
}

.page-centered {
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px 32px;
  background: linear-gradient(180deg, rgba(21, 29, 43, 0.95), rgba(17, 24, 39, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.login__logo {
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 10px 24px rgba(79, 140, 255, 0.35));
}

.login__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.login__lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.login__hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(79, 140, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 140, 255, 0.45);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px 24px;
  }

  .login__title {
    font-size: 22px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
