:root {
  --bg: linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
  --paper: #ffffff;
  --canvas: #f6f7fa;
  --text: #1c1f26;
  --muted: #7a808a;
  --line: #e5e8ee;
  --call: #0d9466;
  --call-shadow: rgba(13, 148, 102, 0.18);
  --navy: #293854;
  --navy-soft: #3b4d72;
  --accent: #d18624;
  --danger: #c63d43;
  --radius: 24px;
  --font: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  min-height: 100dvh;
  padding: 28px 18px 36px;
}

.page-shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-card,
.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.07);
}

.hero-card {
  padding: 28px 24px;
  margin-bottom: 18px;
}

.brand-mark {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #059d88 0%, #167de0 52%, #5a45d0 100%);
  box-shadow: 0 12px 24px rgba(90, 69, 208, 0.2);
}

.brand-ring {
  position: absolute;
  inset: 23px;
  border: 6px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  transform: rotate(-30deg);
}

.brand-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f0aa1e;
}

.eyebrow,
.card-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--call);
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-card {
  padding: 24px;
}

h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 400;
  font-family: var(--serif);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.step[hidden],
#open-app[hidden] {
  display: none !important;
}

.row {
  display: flex;
  gap: 10px;
}

.select,
.input {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-size: 16px;
  padding: 15px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.select {
  flex: 0 0 118px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--call) 50%),
    linear-gradient(135deg, var(--call) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.input:focus,
.select:focus {
  border-color: var(--call);
  box-shadow: 0 0 0 4px rgba(13, 148, 102, 0.12);
  background: var(--paper);
}

.btn {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--call);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 16px;
  cursor: pointer;
  box-shadow: 0 10px 22px var(--call-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(13, 148, 102, 0.22);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
}

.error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.links button {
  background: none;
  border: 0;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}

.links button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#recaptcha-container {
  min-height: 1px;
}

.open-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--canvas);
}

.open-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 520px) {
  body {
    padding: 18px 14px 28px;
  }

  .hero-card,
  .auth-card {
    border-radius: 28px;
  }

  .hero-title {
    font-size: 30px;
  }

  .row {
    flex-direction: column;
  }

  .select {
    flex-basis: auto;
  }
}
