/*
 * Datalive TV · Estilos de las páginas de inicio de sesión, registro y alta del punto de venta.
 */

body.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 32px;
  background: var(--bg);
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth__brand img {
  height: 34px;
  width: auto;
}

.auth__brand .brand-word {
  font-size: 20px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.auth-card--wide {
  max-width: 520px;
}

.auth-card h1 {
  font-size: 20px;
  line-height: 28px;
}

.auth-card__lead {
  margin: 4px 0 24px;
  color: var(--text-3);
  font-size: 14px;
}

.auth-card .stack {
  gap: 14px;
}

.auth-card .btn--block {
  margin-top: 8px;
  height: 42px;
}

.auth-foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.auth-legal {
  margin-top: auto;
  padding-top: 32px;
  font-size: 12px;
  color: var(--text-4);
}

.pw-field {
  position: relative;
}

.pw-field .input {
  padding-right: 42px;
}

.pw-field .visibility-icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-4);
  font-size: 20px;
  cursor: pointer;
}

.pw-field .visibility-icon:hover {
  background: var(--surface-3);
  color: var(--text-2);
}

.errorMsg {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger-strong);
}

.errorFormMessage:not(:empty) {
  padding: 10px 12px;
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: #7a271a;
  font-size: 13px;
}

.code-field {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.validateCodeOverlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
}

.auth-success {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-dot);
}

.auth-success .ms {
  font-size: 30px;
}

.steps-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.btn .btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

#msjConsole {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
}

.msjConsoleItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink) !important;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
}

.msjConsoleItem.bgColorRojo .material-symbols-rounded { color: #fd8d7e; }
.msjConsoleItem.bgColorVerde .material-symbols-rounded { color: #47cd89; }
.msjConsoleItem .material-symbols-rounded { font-family: "Material Symbols Rounded"; font-size: 18px; }

.msjConsoleItem.bounceOutUp {
  opacity: 0;
  transition: opacity 200ms;
}
