/* Entrada al panel (login y pantalla para crear o restablecer la clave).
   Misma escena que el inicio del sitio: aura suave de la paleta de Maity, isotipo real,
   tarjeta de vidrio y botón coral redondeado. Va aparte de estilo.css y se carga después,
   así que solo retoca lo que se ve antes de entrar. */

.acceso {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--fondo);
}
/* Aura que respira despacio, como en el inicio */
.acceso::before,
.acceso::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  animation: acceso-respirar 12s ease-in-out infinite;
}
.acceso::before {
  width: 56vmax; height: 56vmax; left: -16vmax; top: -18vmax;
  background: radial-gradient(circle, rgba(152, 173, 164, .75), transparent 65%);
}
.acceso::after {
  width: 42vmax; height: 42vmax; right: -14vmax; bottom: -16vmax;
  background: radial-gradient(circle, rgba(224, 83, 83, .3), transparent 65%);
  animation-delay: -6s;
}
:root[data-tema="oscuro"] .acceso::before,
:root[data-tema="oscuro"] .acceso::after { opacity: .32; }
@keyframes acceso-respirar {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(2vmax, -1vmax); }
}

.acceso-caja {
  border-radius: 28px; padding: 34px 30px 26px;
  background: color-mix(in srgb, var(--superficie) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}

/* Marca: isotipo de Maity sobre el degradado uva, igual que la cabecera del sitio */
.acceso .marca { gap: 14px; margin-bottom: 26px; }
.acceso .marca-m {
  width: 50px; height: 50px; border-radius: 15px; color: #F2E7DD;
  background: linear-gradient(135deg, #7A1A52, #5F0A3C 55%, #48062D);
  box-shadow: 0 10px 24px -14px rgba(95, 10, 60, .8);
}
.acceso .marca-m .iso { width: 15px; height: 36px; }
.acceso .marca-t { font-size: 21px; font-weight: 700; color: var(--uva); }
:root[data-tema="oscuro"] .acceso .marca-t { color: var(--texto); }
.acceso .marca-s { font-size: 11.5px; }

/* Campos y botón con las medidas del formulario del inicio (16 px: el iPhone no hace zoom) */
.acceso .campo > label { font-size: 13.5px; font-weight: 700; color: var(--texto); }
.acceso input[type=email],
.acceso input[type=password],
.acceso input[type=text] { min-height: 50px; border-radius: 14px; font-size: 16px; padding: 12px 14px; }
.acceso .btn-p {
  min-height: 52px; border-radius: 999px; font-size: 16.5px; font-weight: 700;
  background: #E05353; color: #fff; box-shadow: 0 10px 24px -12px rgba(224, 83, 83, .85);
}
.acceso .btn-p:hover:not(:disabled) { background: #C9434A; }
:root[data-tema="oscuro"] .acceso .btn-p { background: #EC6A6A; color: #1A1018; }
:root[data-tema="oscuro"] .acceso .btn-p:hover:not(:disabled) { background: #F28383; }
.acceso #btn-olvide { border-radius: 999px; }

/* Verificación anti robots de Cloudflare: visible, de ancho completo */
.acceso .cf-turnstile { min-height: 65px; margin: 4px 0 14px; }

.acceso-pie {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--borde);
  font-size: 12.5px; color: var(--texto-3);
}
.acceso-pie a { color: var(--texto-2); text-decoration: none; font-weight: 700; }
.acceso-pie a:hover { color: var(--coral); }

/* ---------- Entrada dividida: lado de marca + tarjeta (solo el login) ---------- */
.acceso-dividido { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; place-items: stretch; }
.acceso-dividido .acceso-caja { align-self: center; justify-self: center; margin: 24px; }

.acceso-lado {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  gap: 18px; padding: clamp(32px, 6vw, 80px);
  background: linear-gradient(160deg, #5F0A3C, #3E0627 72%); color: #F2E7DD;
}
.acceso-lado::before {
  content: ""; position: absolute; right: -20%; top: -25%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 173, 164, .3), transparent 62%);
}
.acceso-lado .iso-grande { width: 46px; height: 110px; color: #F2E7DD; position: relative; }
.acceso-lema {
  position: relative; margin: 0; max-width: 12em;
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.01em;
}
.acceso-lema em { font-style: normal; font-weight: 700; color: #FFB4A8; }
.acceso-firma { position: relative; margin: 0; font-size: 14px; color: rgba(242, 231, 221, .78); }
.acceso-halo {
  position: absolute; left: 14%; bottom: 12%; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(242, 231, 221, .22); animation: acceso-halo 6s ease-out infinite;
}
.acceso-halo.h2 { animation-delay: 3s; }
@keyframes acceso-halo { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }

@media (max-width: 860px) {
  .acceso-dividido { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .acceso-lado { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 18px 20px; padding-top: max(18px, env(safe-area-inset-top)); }
  .acceso-lado .iso-grande { width: 14px; height: 34px; }
  .acceso-lema { font-size: 19px; max-width: none; }
  .acceso-firma, .acceso-halo { display: none; }
  /* El cuadro de Cloudflare mide 300 px fijos: con este margen y relleno cabe desde 356 px de ancho */
  .acceso-dividido .acceso-caja { margin: 22px 12px 32px; padding: 28px 16px 22px; width: auto; max-width: 440px; justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .acceso::before, .acceso::after, .acceso-halo { animation: none; }
}
