:root {
  color-scheme: dark;
  --blue: #4f7cff;
  --violet: #8b3dff;
  --text: #f1f2fa;
  --muted: #858aa6;
  --field: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --error: #ff6b70;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(70% 45% at 0% 0%, rgba(79, 124, 255, .22), transparent 70%),
    radial-gradient(70% 45% at 100% 100%, rgba(139, 61, 255, .22), transparent 70%),
    #0d0d15;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 340px;
  padding: 20px 18px;
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.field {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  gap: 6px;
  background: var(--field);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}

.field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, .18);
}

input, select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

input { flex: 1; min-width: 0; height: 100%; }

input::placeholder { color: #5f6482; }

select {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  padding: 0 18px 0 0;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23858aa6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right center;
}

select option { background: #171722; color: var(--text); }

.hint {
  margin: 8px 4px 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.hint.center { text-align: center; }

button {
  width: 100%;
  height: 48px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 8px 22px rgba(112, 82, 255, .35);
  transition: opacity .15s, transform .1s;
}

button:active:not(:disabled) { transform: scale(.985); }

button:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
}

button.loading { opacity: .7; cursor: progress; }

#error {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--error);
}

.check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 8px 22px rgba(112, 82, 255, .35);
}

.check svg { width: 28px; height: 28px; }

[hidden] { display: none !important; }
