/* =============================================
   Encabezado de la pantalla de clientes
============================================= */

.registro-header {
  min-height: 74px;
  padding: 12px max(22px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 22, 0.92);
}

.registro-back {
  color: #b6a0ff;
  font-size: 13px;
}


/* =============================================
   Contenedor y tarjeta de acceso
============================================= */

.registro-main {
  min-height: calc(100vh - 74px);
  padding: 44px 18px;
  display: grid;
  place-items: center;
}

.registro-card {
  width: min(100%, 490px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #151729, #0e1020);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.registro-card h1 {
  margin: 10px 0 8px;
  font: 800 32px/1.2 "Manrope", sans-serif;
  letter-spacing: -1px;
}

.registro-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


/* =============================================
   Aviso cuando el cliente llega desde un QR
============================================= */

.registro-notice {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: 12px;
  color: #e2d5ff;
  background: rgba(139, 92, 246, 0.1);
  font-size: 13px;
  line-height: 1.55;
}


/* =============================================
   Selector entre ingresar y crear cuenta
============================================= */

.registro-mode-switch {
  margin-top: 24px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #090b16;
}

.registro-mode-button {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: #a9aabc;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.registro-mode-button:hover {
  color: #fff;
}

.registro-mode-button.active {
  color: #fff;
  background: linear-gradient(120deg, #8455f5, #6136dd);
  box-shadow: 0 5px 16px rgba(96, 50, 212, 0.28);
}


/* =============================================
   Campos de inicio de sesión y registro
============================================= */

.registro-form {
  margin-top: 23px;
  display: grid;
  gap: 10px;
}

.registro-form[hidden] {
  display: none !important;
}

.registro-form > label:not(.registro-consent) {
  margin-top: 7px;
  color: #f2f0fa;
  font-size: 13px;
  font-weight: 700;
}

.registro-form > input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: #0b0d19;
  font: inherit;
  font-size: 14px;
}

.registro-form > input::placeholder {
  color: #777b90;
}

.registro-form > input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}


/* =============================================
   Aceptación de privacidad y mensajes
============================================= */

.registro-consent {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #bfc0ce;
  font-size: 12px;
  line-height: 1.5;
}

.registro-consent input {
  margin: 2px 0 0;
  accent-color: var(--purple);
}

.registro-consent a {
  color: #c4a9ff;
  text-decoration: underline;
}

.registro-message {
  min-height: 18px;
  margin: 0;
  color: #ffb3bd;
  font-size: 13px;
  line-height: 1.5;
}

.registro-message.success {
  color: #80e6b0;
}

.registro-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}


/* =============================================
   Enlaces para cambiar de formulario
============================================= */

.registro-switch-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.registro-switch-copy button {
  padding: 0;
  border: 0;
  color: #c4a9ff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.registro-switch-copy button:hover {
  color: #fff;
  text-decoration: underline;
}

.registro-footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}


/* =============================================
   Adaptación para celulares
============================================= */

@media (max-width: 520px) {
  .registro-header {
    min-height: 66px;
    padding-inline: 18px;
  }

  .registro-main {
    min-height: calc(100vh - 66px);
    padding: 24px 14px;
  }

  .registro-card {
    padding: 28px 21px;
  }

  .registro-card h1 {
    font-size: 28px;
  }
}