* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --bg1: #dbeafe;
  --bg2: #eff6ff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow2: 0 6px 16px rgba(15, 23, 42, 0.08);
  --r24: 24px;
  --r16: 16px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.hero dotlottie-wc {
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.18));
}

.card {
  margin-top: 6px;
  background: var(--card);
  border-radius: var(--r24) var(--r24) 0 0;
  box-shadow: 0 -4px 22px rgba(15, 23, 42, 0.08);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.brand-title {
  margin: 4px 0 2px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 10px;
  background: #f3f4ff;
  padding: 4px;
  border-radius: 999px;
  margin-top: 6px;
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: 0.18s ease;
}

.tab.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: var(--shadow2);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

.lab {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-top: 6px;
  margin-bottom: 6px;
}

.inp {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r16);
  border: 1px solid var(--border);
  outline: none;
  background: #f9fafb;
  font-size: 14px;
  transition: 0.18s ease;
}

.inp:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.hint {
  margin: 6px 0 0;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}

.phoneWrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
}

.cc {
  font-weight: 900;
  font-size: 14px;
  border-right: 1px solid #e5e7eb;
  padding-right: 10px;
}

.phoneInp {
  border: 0;
  background: transparent;
  height: 40px;
  padding: 0;
  border-radius: 0;
}

.phoneInp:focus {
  box-shadow: none;
}

.btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.primary:disabled {
  background: #cbd5f5;
  box-shadow: none;
  cursor: not-allowed;
}

.otpBox {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
  text-align: left;
}

.otpHead {
  font-weight: 900;
  font-size: 13px;
  color: #334155;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.otpRow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.otp {
  flex: 1;
  max-width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.otp:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.otpMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 12px;
}

.timer {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.link:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.passWrap {
  position: relative;
}

.eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #e5edff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.switchAuth {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

.switchLink {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.err {
  margin: 6px 0 0;
  color: #dc2626;
  font-weight: 800;
  text-align: left;
}

.ok {
  margin: 6px 0 0;
  color: #16a34a;
  font-weight: 800;
  text-align: left;
}

.terms {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.terms span {
  color: var(--blue);
  font-weight: 800;
}
