/* Login: la misma mesa de cuadros vichy de las etapas, polaroids de recuerdo a un lado y la tarjeta de acceso al otro. */
.mesa-login {
  --cuadro: rgba(176, 40, 72, .16);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(24px, 5vw, 72px); align-items: center;
  min-height: calc(100svh - 78px); padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 72px);
  background-color: #FBEFEF;
  background-image: linear-gradient(90deg, var(--cuadro) 50%, transparent 50%), linear-gradient(var(--cuadro) 50%, transparent 50%);
  background-size: 56px 56px;
}
@media (max-width: 860px) { .mesa-login { grid-template-columns: 1fr; } .recuerdos { display: none; } }

.recuerdos { position: relative; height: min(70vh, 620px); }
.polaroid-login {
  position: absolute; left: var(--x); top: var(--y); width: min(38%, 250px); margin: 0; padding: 10px 10px 40px; background: #fff;
  rotate: var(--r); box-shadow: 0 18px 36px rgba(60, 10, 30, .25); transition: rotate .4s ease, translate .4s ease;
}
.polaroid-login:hover { rotate: 0deg; translate: 0 -6px; }
.polaroid-login img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid-login figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 22px/1 var(--fuente-mano); color: var(--tinta); }
.nota-login { position: absolute; left: 36%; top: 42%; margin: 0; rotate: -6deg; font: 700 clamp(24px, 2.6vw, 32px)/1.05 var(--fuente-mano); color: var(--granate); text-shadow: 0 2px 0 #fff; }

.tarjeta-login { background: var(--crema); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 70px rgba(60, 10, 30, .22); }
.tarjeta-login h1 { margin: 0; font: 400 clamp(48px, 6vw, 66px)/1 var(--fuente-script); color: var(--granate); }
.subtitulo { margin: 10px 0 22px; color: var(--tinta-suave); }
.pestanas { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: #F3E2E6; }
.pestanas button { border: 0; border-radius: 999px; padding: 10px; background: none; font: 600 15px/1 var(--fuente-texto); color: var(--tinta-suave); cursor: pointer; }
.pestanas button[aria-selected="true"] { background: #fff; color: var(--granate); box-shadow: 0 2px 8px rgba(60, 10, 30, .1); }
.panel { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; font: 600 14px/1.2 var(--fuente-texto); }
.campo input { width: 100%; padding: 12px 13px; border-radius: 12px; border: 1.5px solid #E8D5DA; background: #fff; font: 400 16px/1.2 var(--fuente-texto); }
.campo input:focus { outline: none; border-color: var(--granate); box-shadow: 0 0 0 3px rgba(176, 40, 72, .15); }
.campo.error input { border-color: var(--granate); }
.clave { position: relative; display: block; }
.clave input { padding-right: 60px; }
.clave .ver { position: absolute; right: 6px; top: 50%; translate: 0 -50%; border: 0; background: none; padding: 6px 8px; color: var(--granate); font: 600 13px/1 var(--fuente-texto); cursor: pointer; }
.fila-login { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.recordar { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--tinta-suave); }
.recordar input { accent-color: var(--granate); width: 16px; height: 16px; }
.acepto.error { color: var(--granate); }
.olvido { color: var(--granate); font-weight: 600; }
.boton.ancho { width: 100%; justify-content: center; padding: 15px; font-size: 16px; }
.separador { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--tinta-suave); font-size: 14px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: #E8D5DA; }
.sociales { display: grid; gap: 10px; }
.boton.social { width: 100%; justify-content: center; gap: 10px; color: var(--tinta); box-shadow: inset 0 0 0 1.5px #E1C9CF; background: #fff; }
.boton.social:hover { box-shadow: inset 0 0 0 1.5px var(--granate); background: #fff; }
.boton.social svg { width: 20px; height: 20px; }
.aviso-login { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff; border-left: 3px solid var(--oro); font-size: 14px; }
.nota-prototipo { margin: 14px 0 0; font-size: 12px; color: var(--tinta-suave); text-align: center; }

@media (prefers-reduced-motion: reduce) { .polaroid-login { transition: none; } }
