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

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.auth-brand { margin-bottom: 24px; }
.auth-title { font-size: 24px; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-soft); line-height: 1.5; margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.auth-field input {
  padding: 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  width: 100%;
}
.auth-field input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* El autocompletado del navegador pinta su propio fondo: se ajusta al tema activo. */
.auth-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--bg) inset;
  caret-color: var(--text);
}

.auth-password { position: relative; }
.auth-password input { padding-right: 52px; }
.auth-password input::-ms-reveal { display: none; }

.auth-ver {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-soft);
  cursor: pointer;
}
.auth-ver:hover { color: var(--text); }
.auth-ver:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.auth-ver svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-ver .icono-oculto,
.auth-ver[aria-pressed="true"] .icono-ver { display: none; }
.auth-ver[aria-pressed="true"] .icono-oculto { display: block; }

.auth-aviso {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 13px;
}

.auth-form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.auth-volver { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 600; }
