/* Pantallas de acceso (login, recuperar y restablecer contraseña) — tema oscuro */
* { box-sizing: border-box; }
body.acceso {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: #0b1120; color: #e6eaf2; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5;
}
.acceso-tarjeta {
  width: 100%; max-width: 384px; padding: 2.5rem 2rem 2.25rem; text-align: center;
  background: #141b2d; border: 1px solid #263049; border-radius: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / .35);
}
.acceso-logo { display: block; width: 84px; height: 84px; margin: 0 auto 1.25rem; }
.acceso h1 { margin: 0; font-size: 1.45rem; font-weight: 700; color: #fff; }
.acceso-sub { margin: .55rem 0 1.75rem; color: #7b9cf0; font-size: .92rem; }
.acceso-texto { color: #aab4c8; font-size: .92rem; text-align: left; margin: 0 0 .5rem; }

.acceso form { text-align: left; }
.acceso label { display: block; margin: 1.1rem 0 .55rem; font-weight: 600; font-size: .9rem; color: #fff; }
.acceso input:not([type=hidden]) {
  width: 100%; height: 44px; padding: 0 .85rem; font: inherit; color: #e6eaf2;
  background: #222c42; border: 1px solid #36425e; border-radius: 6px;
}
.acceso input::placeholder { color: #6c7892; }
.acceso input:focus { outline: none; border-color: #5b7fe6; box-shadow: 0 0 0 3px rgb(91 127 230 / .3); }

.clave { position: relative; }
.clave input:not([type=hidden]) { padding-right: 2.9rem; }
.ver-clave {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: #9aa6bf; cursor: pointer;
}
.ver-clave:hover, .ver-clave[aria-pressed=true] { color: #fff; }
.ver-clave:focus-visible { outline: 2px solid #5b7fe6; }

.acceso-boton {
  width: 100%; height: 46px; margin-top: 1.75rem; border: 0; border-radius: 6px; cursor: pointer;
  background: #2f52c4; color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
}
.acceso-boton:hover { background: #3a5fd6; }
.acceso-boton:focus-visible { outline: 3px solid #9db4ff; outline-offset: 2px; }

.acceso-enlace { margin: 1.4rem 0 0; font-size: .88rem; }
.acceso-enlace a { color: #9aa6bf; }
.acceso-enlace a:hover { color: #fff; }
.acceso-ayuda { display: block; margin-top: .4rem; color: #8590a8; font-size: .8rem; }

.acceso-aviso { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 .75rem; font-size: .9rem; text-align: left; border: 1px solid; }
.acceso-aviso-error { background: rgb(220 60 60 / .12); border-color: rgb(220 60 60 / .45); color: #ffb4b4; }
.acceso-aviso-ok, .acceso-aviso-clave { background: rgb(40 170 100 / .12); border-color: rgb(40 170 100 / .45); color: #9fe3bd; }

/* Animación de entrada */
@keyframes entrar { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes girar { from { opacity: 0; transform: rotate(-90deg) scale(.6); } to { opacity: 1; transform: none; } }
.acceso-tarjeta { animation: entrar .5s cubic-bezier(.2, .7, .2, 1) both; }
.acceso-logo { animation: girar .7s cubic-bezier(.2, .7, .2, 1) both .15s; }
.acceso-boton, .acceso input:not([type=hidden]) { transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.acceso-boton:active { transform: scale(.98); }
.acceso-aviso { animation: entrar .3s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
