:root {
  --bg: #050914;
  --card: rgba(9, 17, 34, 0.78);
  --card-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f5f8ff;
  --muted: #9aa9c0;
  --soft: #c8d5ea;
  --blue: #5aa7ff;
  --violet: #8067ff;
  --green: #34d399;
  --red: #ff5b7d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.5;
}

.glow-1 {
  top: -170px;
  left: -130px;
  background: radial-gradient(circle, rgba(90, 167, 255, 0.5), transparent 68%);
}

.glow-2 {
  right: -190px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(128, 103, 255, 0.45), transparent 70%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.card {
  width: min(760px, 100%);
  position: relative;
  z-index: 1;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045)),
    var(--card);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 50px rgba(90, 167, 255, 0.28);
  font-weight: 900;
  font-size: 23px;
}

h1 {
  font-size: 31px;
  letter-spacing: -0.06em;
}

.brand p {
  color: var(--muted);
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #cbffdf;
  font-weight: 800;
  white-space: nowrap;
}

.badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.14);
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 850;
  margin-bottom: 12px;
}

h2 {
  max-width: 650px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #b8dcff 45%, #bfb6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  max-width: 620px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  outline: none;
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(5, 9, 20, 0.72);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(200, 213, 234, 0.48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(90, 167, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(90, 167, 255, 0.12);
}

button {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 45px rgba(90, 167, 255, 0.24);
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
  transition: transform .18s ease, opacity .18s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.result {
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.result.ok {
  display: block;
  color: #cbffdf;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.result.err {
  display: block;
  color: #ffd2dc;
  background: rgba(255, 91, 125, 0.1);
  border: 1px solid rgba(255, 91, 125, 0.2);
}

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

.notice div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card-2);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.notice p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 680px) {
  .page {
    display: block;
    padding: 16px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 30px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .row,
  .notice {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 50px;
  }
}
