/** Conserva Arial, tarjeta blanca y degradado azul del diseño de loginregistro. */
.acceso-cliente {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: #172c46;
  font: 16px/1.5 Arial, sans-serif;
  background: linear-gradient(130deg, skyblue, #1839cf);
}

.acceso-cliente *, .acceso-cliente *::before, .acceso-cliente *::after { box-sizing: border-box; }
.acceso-cliente [hidden] { display: none !important; }
.acceso-cliente button, .acceso-cliente input { font: inherit; }
.acceso-cliente button { cursor: pointer; }
.acceso-cliente button:disabled { cursor: wait; opacity: .65; }
.acceso-cliente a { color: #064ca7; text-underline-offset: 3px; }
.acceso-cliente :focus-visible { outline: 3px solid #edac00; outline-offset: 3px; }

.saltar-contenido { position: absolute; top: -100px; left: 10px; z-index: 2; background: #fff; padding: 12px; }
.saltar-contenido:focus { top: 10px; }
.acceso-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 5%; background: #fff; border-top: 5px solid #9a0000; border-bottom: 3px solid #147d39; }
.acceso-marca { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: bold; text-decoration: none; }
.acceso-marca img { display: block; object-fit: contain; }
.acceso-marca small { display: block; font-size: 12px; color: #516176; font-weight: normal; }
.acceso-cabecera nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.acceso-cabecera nav a { padding: 10px 0; font-size: 14px; }

.hero-register { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 32px 16px; }
.access-card { width: 100%; max-width: 570px; min-width: 0; padding: 28px; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px #00288526; }
.access-context { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; color: #52677c; font-size: 12px; margin-bottom: 20px; }
.access-context strong { color: #0753a7; letter-spacing: .04em; }
.access-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid #cbdced; border-radius: 5px; background: #edf5fd; }
.access-tabs button { min-height: 44px; padding: 8px; color: #285681; border: 0; border-radius: 3px; background: transparent; }
.access-tabs button[aria-pressed="true"] { background: #1266c3; color: #fff; font-weight: bold; }
.access-card h1 { margin: 24px 0 6px; font-size: 25px; line-height: 1.25; font-weight: 500; }
.access-intro { margin: 0 0 22px; color: #53677c; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label { color: #095aab; font-size: 14px; font-weight: bold; }
.field input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #acbed2; border-bottom-width: 2px; border-radius: 5px; padding: 9px 11px; background: #fff; color: #142d47; }
.field input:focus { border-color: #1475cf; }
.field input[aria-invalid="true"] { border-color: #b12323; }
.password-control { display: flex; align-items: stretch; min-width: 0; }
.password-control input { border-radius: 5px 0 0 5px; flex: 1; }
.password-control button { flex: 0 0 auto; min-width: 78px; border: 1px solid #acbed2; border-left: 0; border-radius: 0 5px 5px 0; background: #edf5fd; color: #0753a7; font-size: 13px; padding: 9px; }
.field-hint { font-size: 12px; color: #52667c; }
.field-error { font-size: 13px; color: #aa1818; }
.button-gradient { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; margin-top: 14px; padding: 12px; background: linear-gradient(130deg, #173ebf, #0974ac); color: #fff !important; border: 0; border-radius: 5px; font-weight: bold; text-decoration: none; text-align: center; }
.button-gradient:hover:not(:disabled) { background: linear-gradient(130deg, #0974ac, #173ebf); }

/** Los mensajes ocupan espacio normal para que errores largos no tapen campos. */
.access-message { padding: 12px; border: 1px solid #b7d5ec; border-radius: 5px; background: #eff8ff; font-size: 14px; overflow-wrap: anywhere; }
.access-message-error { background: #fff2f2; border-color: #e9b9b9; color: #912121; }
.progressive-note { margin: 18px 0; padding: 12px 14px; border-left: 3px solid #1375bf; background: #edf7ff; font-size: 13px; }
.progressive-note p { margin: 3px 0 0; }
.access-links { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 22px; font-size: 13px; }
.access-links a { padding-block: 6px; }
.acceso-pie { width: 100%; padding: 20px 5%; text-align: center; background: #9a0000; color: #fff; font-size: 13px; }
.acceso-pie p { max-width: 670px; margin: 6px auto 12px; }
.acceso-pie a { color: #fff; }

/** 320 px sigue siendo operable sin reducir campos táctiles por debajo de 44 px. */
@media (max-width: 584px) {
  .acceso-cabecera { gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
  .acceso-marca { font-size: 18px; }
  .acceso-marca img { width: 44px; height: 44px; }
  .acceso-cabecera nav { margin-left: auto; }
  .hero-register { padding: 20px 10px; min-height: 0; }
  .access-card { padding: 20px 16px; }
  .access-card h1 { font-size: 23px; }
  .access-tabs button { font-size: 14px; }
  .access-links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .acceso-cliente * { scroll-behavior: auto; }
}
