:root {
  --navy: #03204A;
  --navy-soft: #0A2E63;
  --gold: #E7BA3A;
  --gold-soft: #F3D877;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F5F7FB;
  --danger: #B42318;
  --ok: #067647;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sharp Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(231, 186, 58, .18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(10, 46, 99, .55), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #02152F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.wrap { width: 100%; max-width: 460px; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.brand img { height: 34px; width: auto; }

.card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 30px 60px -20px rgba(2, 15, 35, .65), 0 2px 6px rgba(2, 15, 35, .12);
}

h1 {
  font-size: 23px;
  line-height: 1.22;
  margin: 0 0 5px;
  letter-spacing: -.3px;
}
.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.field { margin-bottom: 12px; }
label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}

.inp {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FBFCFE;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.inp:focus-within {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(3, 32, 74, .08);
}
.inp.err { border-color: var(--danger); background: #FFF7F6; }
.inp .prefix {
  padding: 0 10px 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  border-right: 1px solid var(--line);
  margin-right: 2px;
  line-height: 48px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.inp input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}
.inp input::placeholder { color: #6F7C8F; }

.toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  font-family: inherit;
}

.msg {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
}
.msg.on { display: block; }

.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

button.cta {
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: var(--gold);
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 15px 18px;
  margin-top: 12px;
  cursor: pointer;
  transition: transform .06s, background .15s, box-shadow .15s;
  box-shadow: 0 10px 22px -10px rgba(231, 186, 58, .9);
}
button.cta:hover { background: var(--gold-soft); }
button.cta:active { transform: translateY(1px); }
button.cta[disabled] { opacity: .65; cursor: progress; }

.spin {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(3, 32, 74, .25);
  border-top-color: var(--navy);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.legal {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
  text-align: center;
}
.legal a { color: var(--navy); text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748B;
  font-size: 12px;
  margin: 15px 0 10px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.alt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}
.alt a, .alt .linkish { white-space: nowrap; }
.alt a { color: var(--navy); font-weight: 700; text-decoration: none; }
.alt a:hover { text-decoration: underline; }

.banner {
  display: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}
.banner.on { display: block; }
.banner.bad { background: #FEF3F2; color: var(--danger); border: 1px solid #FEE4E2; }
.banner.good { background: #ECFDF3; color: var(--ok); border: 1px solid #D1FADF; }

/* bienvenida */
.check {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: #ECFDF3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.check svg { width: 36px; height: 36px; stroke: var(--ok); }

.steps { margin: 18px 0 0; padding: 0; list-style: none; }
.steps li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}
.steps li:first-child { border-top: 0; }
.steps .n {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.center { text-align: center; }
.email {
  font-weight: 800;
  color: var(--navy);
  word-break: break-all;
}
.linkish {
  background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}
.foot { text-align: center; color: rgba(255,255,255,.55); font-size: 12px; margin-top: 16px; }
.foot a { color: rgba(255,255,255,.75); }
