:root {
  color-scheme: light;
  --page: #f6f8fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e1ea;
  --soft: #eef3f8;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --accent: #2563eb;
  --gold: #c79231;
  --danger: #c62828;
  --success: #0f7a3a;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(199, 146, 49, 0.12), transparent 30%),
    var(--page);
  color: var(--ink);
}

.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1040px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-brand {
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.98), rgba(17, 24, 39, 0.96)),
    #111827;
  color: #ffffff;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 950;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  gap: 14px;
}

.eyebrow,
.panel-kicker {
  color: #d8b36d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy h1 {
  max-width: 11ch;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.brand-copy p {
  max-width: 35ch;
  color: #d8e2ef;
  line-height: 1.6;
  font-size: 15px;
}

.brand-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brand-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-metrics strong,
.brand-metrics span {
  display: block;
}

.brand-metrics strong {
  font-size: 18px;
}

.brand-metrics span {
  margin-top: 4px;
  color: #c7d2df;
  font-size: 12px;
  font-weight: 700;
}

.auth-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-topline h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}

.secure-pill {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 900;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.tab-pill {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
}

.auth-page[data-mode="login"] .tab-login,
.auth-page[data-mode="registro"] .tab-register {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.auth-container {
  position: relative;
  min-height: 390px;
}

.auth-box {
  display: none;
}

.auth-box.active {
  display: block;
}

.registro {
  overflow: hidden;
}

.form-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.form-heading h3 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.form-heading p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  color: #253348;
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder {
  color: #98a2b3;
}

input:focus,
select:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.primary-action,
.secondary-action,
.btn-huella {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.primary-action {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.22);
}

.primary-action:hover {
  background: var(--brand-strong);
}

.primary-action:active,
.secondary-action:active,
.btn-huella:active {
  transform: translateY(1px);
}

.primary-action:disabled,
.secondary-action:disabled,
.btn-huella:disabled {
  opacity: 0.7;
  cursor: wait;
}

.secondary-action,
.btn-huella {
  margin-top: 10px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-huella {
  display: none;
}

.btn-huella.visible {
  display: block;
}

.switch {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.switch a {
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

.msg {
  min-height: 22px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.msg.error,
.msg.ok {
  padding: 10px 12px;
}

.msg.error {
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.msg.ok {
  color: var(--success);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.register-slider {
  display: flex;
  width: 200%;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.register-step {
  flex: 0 0 50%;
  padding-right: 1px;
}

.check {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: #253348;
  font-weight: 800;
  line-height: 1.35;
}

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

.download-block,
.social-block {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.download-title,
.social-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.download-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.download-link,
.social-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.download-link {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.download-link.driver {
  background: #111827;
  border-color: #111827;
}

.download-link span,
.social-link span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f7;
  color: var(--brand);
  font-size: 10px;
}

.download-link span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (max-width: 820px) {
  .auth-page {
    padding: 0;
    place-items: stretch;
  }

  .auth-shell {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .auth-brand {
    min-height: 260px;
    padding: 26px 22px;
  }

  .brand-copy h1 {
    max-width: 12ch;
    font-size: 38px;
  }

  .brand-copy p {
    font-size: 14px;
  }

  .brand-metrics {
    display: none;
  }

  .auth-panel {
    padding: 28px 20px 34px;
    justify-content: flex-start;
  }

  .auth-topline {
    display: grid;
  }

  .secure-pill {
    width: fit-content;
  }
}

@media (max-width: 420px) {
  .auth-brand {
    min-height: 220px;
  }

  .brand-copy h1 {
    font-size: 32px;
  }

  .auth-panel {
    padding-inline: 16px;
  }
}

/* App premium skin: matches BeGO dark background and footer material. */
body {
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 122, 0, 0.18), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.2), transparent 30%),
    radial-gradient(circle at 92% 70%, rgba(34, 197, 94, 0.12), transparent 28%),
    #020616;
  color: #e5e7eb;
}

.auth-shell {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-brand {
  background:
    radial-gradient(circle at 42% 0%, rgba(255, 122, 0, 0.2), transparent 31%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.brand-mark,
.brand-metrics div {
  background:
    linear-gradient(180deg, rgba(31, 41, 55, 0.78), rgba(15, 23, 42, 0.86));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 26%),
    rgba(2, 6, 23, 0.72);
}

.auth-topline h2,
.form-heading h3,
.field span,
.check,
.switch,
.download-title,
.social-title {
  color: #e5e7eb;
}

.form-heading p,
.switch,
.social-title,
.download-title {
  color: #94a3b8;
}

.secure-pill {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.24);
  color: #86efac;
}

.auth-tabs,
.check {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.16);
}

.auth-page[data-mode="login"] .tab-login,
.auth-page[data-mode="registro"] .tab-register {
  background:
    linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(12, 13, 17, 0.98));
  color: #ff7a00;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.36);
}

.tab-pill {
  color: #cbd5e1;
}

input,
select {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
}

input:focus,
select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  background: rgba(15, 23, 42, 0.96);
}

.primary-action,
.download-link {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(180deg, #ff8b1a 0%, #ff6a00 62%, #d94d00 100%);
  border: 1px solid rgba(255, 122, 0, 0.34);
  color: #ffffff;
  box-shadow:
    0 14px 28px rgba(255, 106, 0, 0.22),
    inset 0 2px 2px rgba(255, 255, 255, 0.18),
    inset 0 -9px 14px rgba(139, 45, 0, 0.22);
}

.secondary-action,
.btn-huella,
.social-link {
  background:
    linear-gradient(180deg, rgba(31, 31, 35, 0.98), rgba(12, 13, 17, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
  color: #d5d7dc;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.36),
    inset 0 8px 18px rgba(255, 255, 255, 0.035);
}

.download-link.driver {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(15, 23, 42, 0.98));
  border-color: rgba(56, 189, 248, 0.24);
}

.social-link span,
.download-link span {
  background: rgba(255, 122, 0, 0.16);
  color: #ffb36b;
}

.msg.error {
  background: rgba(198, 40, 40, 0.14);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.msg.ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}
