* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.logo-wrapper { margin-bottom: 28px; }
.logo { max-width: 140px; width: 100%; display: block; }

.card {
  width: min(520px, 92vw);
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}

.title { margin: 0 0 6px; font-size: 22px; }
.subtitle { margin: 0 0 18px; color: #bdbdbd; font-size: 14px; }

.pin-wrap { margin-bottom: 18px; position: relative; }

/* El input real ocupa el área del display pero es invisible */
.pin-real-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 86px;
  opacity: 0;
  border: 0;
  outline: none;
  caret-color: transparent;
}

/* Visual del PIN: 4 columnas perfectas */
.pin-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: end;
  padding: 10px 6px 0;
  height: 86px;
  cursor: text;
}

.pin-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pin-cell span {
  display: inline-block;
  min-height: 44px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.pin-line {
  width: 100%;
  height: 2px;
  background: #2a2a2a;
  border-radius: 999px;
}

/* Estado foco: ilumina líneas un poco */
.pin-wrap:focus-within .pin-line {
  background: #3a3a3a;
}

.help { margin-top: 10px; color: #8f8f8f; font-size: 12px; }
.error { margin-top: 10px; color: #ff5a5a; font-size: 13px; min-height: 18px; }

.form {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #222;
}

.form-title { margin: 0 0 14px; font-size: 18px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 12px; color: #cfcfcf; margin-bottom: 6px; }

.field input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  outline: none;
}
.field input:focus { border-color: #5a5a5a; }

.btn {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  background: #161616;
  border: 1px solid #2a2a2a;
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.btn:hover { background: #1c1c1c; }

.success { margin-top: 10px; color: #7CFF8A; font-size: 13px; min-height: 18px; }
.hidden { display: none; }

/* CONSENTIMIENTO */
.consent {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #bdbdbd;
}

.consent input {
  margin-top: 2px;
}

/* FOOTER */
.footer {
  margin-top: 32px;     
  padding-bottom: 24px;  
  text-align: center;
  font-size: 14px;      
}

.footer a {
  color: #bdbdbd;
  text-decoration: none;
}

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

/*  SUCCESS  */

#successSection {
  width: 100%;
}

.success-text {
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.9;
}

