/* ───── Pantallas de acceso (login, registro, recuperación) ───── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); }

.auth-hero { position: relative; overflow: hidden; min-height: 100vh; display: grid; align-content: end; padding: 3rem 3.2rem; isolation: isolate; }
.auth-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 35%; z-index: -2; }
.auth-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, transparent 55%, var(--abismo) 100%),
  linear-gradient(0deg, rgba(5, 12, 29, .96) 0%, rgba(5, 12, 29, .55) 34%, transparent 62%); }
.auth-hero .marca { position: absolute; top: 2rem; left: 3.2rem; display: flex; align-items: center; gap: .7rem; font-family: var(--fuente-display); font-weight: 600; font-size: 1.05rem; text-shadow: 0 2px 20px #000; }
.auth-hero .marca img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--linea-fuerte), var(--glow-holo); }
.auth-hero h2 { font-family: var(--fuente-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.15; max-width: 17ch; text-shadow: 0 4px 30px #000; }
.auth-hero p { margin: .9rem 0 0; max-width: 46ch; color: var(--tinta-2); text-shadow: 0 2px 16px #000; }
.auth-hero .capacidades { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }

.auth-panel { display: grid; place-items: center; padding: 2.2rem 1.5rem; }
.auth-card { width: min(100%, 430px); display: grid; gap: 1.3rem; }
.auth-card.ancha { width: min(100%, 620px); }
.auth-card h1 { font-size: 1.45rem; }
.auth-card .sub { margin: .4rem 0 0; color: var(--tinta-2); }
.auth-card form { display: grid; gap: 1rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--t-sm); }
.auth-pie { font-size: var(--t-xs); color: var(--tinta-3); text-align: center; }
.estado-api { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-xs); color: var(--tinta-3); justify-self: center; }
.sesion-expirada { margin: 0; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { min-height: 250px; padding: 1.4rem; }
  .auth-hero::before { background: linear-gradient(0deg, var(--abismo) 0%, rgba(5, 12, 29, .5) 50%, transparent 85%); }
  .auth-hero .marca { left: 1.4rem; top: 1.2rem; }
  .auth-hero h2 { font-size: 1.3rem; }
  .auth-hero p, .auth-hero .capacidades { display: none; }
}
