:root {
  color-scheme: dark;
  --bg-1: #0a0e1f;
  --bg-2: #1a1f3a;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --success: #10b981;
  --danger: #ef4444;
  --text: #e6e9f2;
  --muted: #8a93b5;
  --card: rgba(20, 25, 50, 0.7);
  --border: rgba(255, 255, 255, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(99, 102, 241, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-1), #050814);
  color: var(--text);
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: rise .4s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.logo {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; margin: 0 auto 18px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  font-size: 26px;
}
h1 {
  margin: 0 0 6px; font-size: 24px; font-weight: 700;
  text-align: center; letter-spacing: -0.02em;
}
h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 600; }
.muted { color: var(--muted); margin: 0 0 22px; font-size: 14px; text-align: center; line-height: 1.5; }
.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px;
}
.field { margin-bottom: 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=tel], input[type=text] {
  width: 100%; padding: 14px 16px;
  background: rgba(10, 14, 31, 0.7);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px; font-size: 17px; letter-spacing: 0.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
  font-variant-numeric: tabular-nums;
}
input[type=tel]:focus {
  border-color: var(--accent);
  background: rgba(10, 14, 31, 0.9);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
button {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s, opacity .15s;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
button:hover { box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5); }
button:active { transform: translateY(1px); }
button.primary { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35); }
button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
button.ghost:hover { background: rgba(255, 255, 255, 0.04); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.row form { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.big-link {
  display: inline-block; color: #a5b4fc; word-break: break-all;
  text-decoration: none; padding: 10px 12px; background: rgba(99, 102, 241, 0.08);
  border-radius: 10px; border: 1px solid rgba(99, 102, 241, 0.2); font-size: 14px;
}
.big-link:hover { background: rgba(99, 102, 241, 0.15); }
.phone-pill {
  display: inline-block; padding: 6px 12px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 999px; font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.center { text-align: center; }
@media (max-width: 420px) {
  .card { padding: 24px 18px; border-radius: 16px; }
  h1 { font-size: 20px; }
  .row { grid-template-columns: 1fr; }
}
