:root {
  color-scheme: light;
  --brand: #b00000;
  --brand2: #8f0000;
  --sheet: rgba(255, 255, 255, 0.98);
  --text: #101828;
  --muted: #667085;
  --border: #d0d5dd;
  --fieldBg: #ffffff;
  --shadow: 0 22px 50px rgba(16, 24, 40, 0.16);
  --radius: 28px;
  --radius2: 999px;
  --safeTop: env(safe-area-inset-top);
  --safeBottom: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans",
    "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color: rgba(255, 255, 255, 0.92);
  overflow-x: hidden;
}

.app {
  min-height: 100%;
}

.screen {
  min-height: 100%;
  padding: calc(18px + var(--safeTop)) 18px calc(18px + var(--safeBottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 12px;
  flex: 1 1 auto;
  min-height: 34vh;
  isolation: isolate;
}

.brandMark {
  width: 168px;
  height: 168px;
  border-radius: 999px;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brandLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  mix-blend-mode: screen;
}

.brandName {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 1.4px;
  font-weight: 850;
}

.brandBy {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.35px;
  color: rgba(255, 255, 255, 0.78);
}

.card {
  width: 100%;
  background: var(--sheet);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  margin-top: auto;
}

.sheetHeader {
  display: grid;
  gap: 6px;
  text-align: center;
}

.sheetTitle {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.1px;
  font-weight: 750;
  color: var(--text);
}

.sheetText {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(102, 112, 133, 0.92);
}

.accent {
  color: var(--brand);
}

.mono {
  font-variant-numeric: tabular-nums;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: rgba(102, 112, 133, 0.95);
}

.input,
.select {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--fieldBg);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.phoneInput {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--fieldBg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.phoneInput:focus-within {
  border-color: rgba(176, 0, 0, 0.9);
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.18);
}

.countrySelect {
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 24, 40, 0.92);
  outline: none;
}

.countrySelect:focus {
  outline: none;
}

.phoneNumber {
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 12px 0 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  flex: 1;
  min-width: 0;
}

.phoneNumber::placeholder {
  color: rgba(102, 112, 133, 0.7);
}

.otpRow {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 2px;
}

.otpDigit {
  height: 52px;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--fieldBg);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: rgba(16, 24, 40, 0.95);
  outline: none;
}

.otpDigit:focus {
  border-color: rgba(176, 0, 0, 0.9);
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.18);
}

.helperRow {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(102, 112, 133, 0.95);
}

.textButton {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: rgba(176, 0, 0, 0.95);
  font-weight: 750;
}

.textButton:disabled {
  cursor: default;
  opacity: 0.55;
}

.textButton.subtle {
  color: rgba(102, 112, 133, 0.95);
  font-weight: 650;
}

.recaptcha {
  height: 0;
  overflow: hidden;
}

.input::placeholder {
  color: rgba(119, 128, 140, 0.85);
}

.input:focus,
.select:focus {
  border-color: rgba(176, 0, 0, 0.9);
  box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.18);
}

.row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 2px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(27, 31, 38, 0.8);
  user-select: none;
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.alert {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(16, 24, 40, 0.04);
  color: rgba(16, 24, 40, 0.92);
  font-size: 13px;
  line-height: 1.3;
}

.alert--error {
  border-color: rgba(255, 91, 106, 0.35);
  background: rgba(255, 91, 106, 0.1);
  color: rgba(27, 31, 38, 0.92);
}

.alert--success {
  border-color: rgba(18, 183, 106, 0.35);
  background: rgba(18, 183, 106, 0.1);
  color: rgba(16, 24, 40, 0.92);
}

.primary {
  height: 52px;
  border-radius: var(--radius2);
  border: none;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.2px;
  box-shadow: 0 18px 28px rgba(176, 0, 0, 0.28);
}

.primary:active {
  transform: translateY(1px);
}

.primary:disabled {
  opacity: 0.75;
}

.link {
  color: rgba(16, 24, 40, 0.9);
  text-decoration: none;
  font-weight: 750;
}

.link:active {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .screen {
    padding: 44px 18px 32px;
  }

  .brandName {
    font-size: 38px;
  }

  .card {
    padding: 22px 20px;
  }

  .otpDigit {
    max-width: 56px;
  }
}
