:root {
  --bg: #090b10;
  --panel: #121424;
  --border: #272a3a;
  --text: #e6e8ef;
  --muted: #a6a8c2;
  --accent: #e6e8ef;
  --radius: 16px;
  --max: 780px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f4f2;
    --panel: #ffffff;
    --border: #d7d5cf;
    --text: #1a1a1a;
    --muted: #5b5954;
    --accent: #1a1a1a;
    --shadow: 0 12px 34px rgba(40, 34, 24, 0.14);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.03), transparent 26%),
    var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 42px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.page {
  width: min(100%, var(--max));
}

.header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #2f3244;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(120, 133, 255, 0.16), rgba(32, 36, 56, 0.9));
  color: #f6f7ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.badge::before {
  content: "★";
  font-size: 12px;
  color: #98c4ff;
  opacity: 0.85;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c0d1a;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #7d7fa0;
}

input:focus {
  outline: none;
  border-color: #a0a2ff;
  box-shadow: 0 0 0 3px rgba(160, 162, 255, 0.1);
}

button {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #f5f6fb, #cdd0f5);
  color: #0a0c12;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(0.97);
}

button:active {
  transform: translateY(1px);
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  border-color: currentColor;
}

@media (prefers-color-scheme: light) {
  body {
    background: radial-gradient(circle at 20% 20%, rgba(64, 56, 40, 0.08), transparent 22%),
      radial-gradient(circle at 80% 0%, rgba(64, 56, 40, 0.12), transparent 26%),
      var(--bg);
  }

  a:hover {
    color: #1a1a1a;
  }

  .badge {
    border-color: #d7d5cf;
    background: linear-gradient(135deg, rgba(210, 203, 184, 0.35), rgba(255, 255, 255, 0.95));
    color: #1a1a1a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(40, 34, 24, 0.12);
  }

  .badge::before {
    color: #6d6a60;
  }

  input[type="text"],
  input[type="email"] {
    background: #f2f0ea;
  }

  input::placeholder {
    color: #8a867e;
  }

  input:focus {
    border-color: #8a867e;
    box-shadow: 0 0 0 3px rgba(138, 134, 126, 0.2);
  }

  button {
    background: linear-gradient(135deg, #f2efe6, #d8d1c2);
    color: #1a1a1a;
  }
}

.text-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-page h1,
.text-page h2 {
  margin: 0;
}

.text-page h2 {
  font-size: 18px;
  color: var(--text);
}

.text-page p,
.text-page li {
  color: var(--muted);
  line-height: 1.6;
}

.text-page ul {
  margin: 0 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

@media (min-width: 720px) {
  body {
    padding-top: 58px;
  }

  .card {
    padding: 26px;
  }
}
