/* Wallet web — estilos compartidos (login / registro / descarga).
   Diseñado para verse idéntico a la app mobile de FidelyT. */

:root {
  --bg: #efeff0;
  --card: #ffffff;
  --ink: #1c1c1e;
  --placeholder: #9a9aa0;
  --divider: #e5e5ea;
  --purple: #43398f;        /* botón / acento fuerte */
  --purple-link: #3d3597;   /* links morados */
  --navy: #2e2a6b;          /* tagline */
  --orange: #e8873a;        /* "Crear cuenta" */
  --field-bg: #ededed;      /* inputs del registro */
  --error: #c0392b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.wallet-page {
  min-height: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centra el panel verticalmente */
}

/* ── Panel único con sombra alrededor de TODO el contenido ── */
.wallet-panel {
  width: 100%;
  background: var(--card);
  border-radius: 28px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 60px rgba(46, 42, 107, 0.20),
              0 6px 16px rgba(0, 0, 0, 0.06);
}

/* ── Logo + tagline ── */
.wallet-logo {
  width: 230px;
  max-width: 70%;
  height: auto;
}

.wallet-tagline {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: 12px;
  margin-bottom: 26px;
}

/* ── Divisor "o" ── */
.wallet-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  color: var(--placeholder);
  font-size: 15px;
  margin: 20px 0;
}
.wallet-divider::before,
.wallet-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}

/* ── Inputs (relleno gris) ── */
.wallet-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wallet-input-wrap { position: relative; display: flex; align-items: center; }

.wallet-input {
  width: 100%;
  border: none;
  outline: none;
  background: var(--field-bg);
  border-radius: 14px;
  font-size: 17px;
  color: var(--ink);
  padding: 18px 20px;
  font-family: inherit;
}

.wallet-input::placeholder { color: var(--placeholder); }

.wallet-eye {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--placeholder);
  display: flex;
}

/* ── Links ── */
.wallet-forgot {
  display: block;
  text-align: center;
  color: var(--purple-link);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 18px;
}

/* ── Botones ── */
.wallet-btn {
  width: 100%;
  border: none;
  border-radius: 32px;
  background: var(--purple);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 19px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  display: block;
}

.wallet-btn:active { opacity: 0.9; }

/* Botón secundario (Iniciar Sesión): contorno morado */
.wallet-btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  margin-top: 20px;
}

.wallet-error {
  width: 100%;
  background: #fdecea;
  color: var(--error);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 16px;
  text-align: center;
}

/* ── Registro ── */

/* "< Volver al inicio" arriba del panel */
.wallet-back {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--purple-link);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 4px;
}
.wallet-back img { height: 34px; width: auto; }

/* Panel de formulario: contenido alineado a la izquierda */
.wallet-panel--form {
  align-items: stretch;
  text-align: left;
  padding: 28px 26px 26px;
}

.wallet-title-accent {
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.wallet-title {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 800;
  margin-top: 2px;
  margin-bottom: 22px;
}

.wallet-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.wallet-label {
  color: #4a4a4f;
  font-size: 17px;
  font-weight: 500;
}

/* Checkbox de términos */
.wallet-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 20px;
  cursor: pointer;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.35;
}
.wallet-terms input {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  accent-color: var(--purple);
  margin-top: 1px;
}
.wallet-terms a { color: inherit; text-decoration: underline; }

/* "¿Tienes una cuenta? Iniciar Sesión" */
.wallet-switch {
  display: block;
  text-align: center;
  color: var(--purple-link);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 18px;
}

/* ── Recuperar contraseña ── */
.wallet-heading { text-align: center; margin-bottom: 26px; }

.wallet-h1 {
  color: var(--purple-link);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.wallet-note {
  width: 100%;
  background: #eef6ee;
  color: #2e6b3a;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 18px;
  text-align: center;
}

/* ── Descarga ── */
.wallet-center { text-align: center; }

.wallet-subtitle {
  color: #5a5a62;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  margin: 10px 0 26px;
}

.wallet-pass-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Botón estilo badge oficial "Agregar a … Wallet" (pastilla negra) */
.wallet-pass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wallet-pass-btn:active { opacity: 0.85; }

.wallet-pass-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;      /* redondea el chip blanco del logo oficial */
  object-fit: contain;
  background: #fff;
}

.wallet-pass-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.wallet-pass-txt small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

/* Botones de login social (Google / Apple): mismo contorno que los campos, ancho completo. */
.wallet-social {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--divider);
  font-size: 17px;
}
