/* =====================================================================
   YCOS · Portal de clientes · Pantalla de ingreso (panel de marca + formulario)
   Colores y tipografía del sitio de YCOS (ycosweb.com): Manrope, azul #3b6bff, fondo #070d1f.
   ===================================================================== */
:root {
  color-scheme: light;
  --bg-page: #eef2fb;
  --navy: #070d1f;
  --navy-2: #0d1630;
  --accent: #3b6bff;
  --accent-hover: #2f5cf0;
  --accent-text: #6b93ff;
  --teal: #2dd4bf;
  --ink: #0d1630;
  --ink-soft: #55607a;
  --ink-faint: #8a93a8;
  --line: #d9dfeb;
  --field: #ffffff;
  --danger: #c62f4b;
  --radius-card: 22px;
  --radius-control: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(59, 107, 255, .16), transparent 60%),
    radial-gradient(50rem 36rem at 110% 110%, rgba(45, 212, 191, .10), transparent 60%),
    var(--bg-page);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------- Estructura ------------------------------- */
.access {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 24px 20px;
}
.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1120px;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(13, 22, 48, .35), 0 2px 6px rgba(13, 22, 48, .06);
  view-transition-name: access-card;
}
.access-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  padding: 0 6px;
  color: var(--ink-faint);
  font-size: 12px;
}

/* ------------------------------ Panel de marca ------------------------------ */
.access-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 52px;
  overflow: hidden;
  color: #f4f6fb;
  background:
    radial-gradient(34rem 26rem at 105% 0%, rgba(59, 107, 255, .32), transparent 65%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 70%);
  isolation: isolate;
}
/* Cuadrícula sutil, la misma idea del sitio de YCOS */
.access-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
}
.access-brand__logo { align-self: flex-start; color: #fff; }
.access-brand__logo img { width: 150px; height: auto; }
.access-brand__logo:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 6px; border-radius: 6px; }

.access-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.access-brand h1 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.access-brand h1 span {
  background: linear-gradient(90deg, var(--accent-text), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.access-brand__text {
  max-width: 30rem;
  margin: 16px 0 0;
  color: #a9b4cf;
  font-size: 16px;
  line-height: 1.6;
}

.access-features {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.access-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #dfe5f5;
  font-size: 15px;
  font-weight: 600;
}
.access-features__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(107, 147, 255, .35);
  border-radius: 10px;
  color: var(--accent-text);
  background: rgba(59, 107, 255, .12);
}
.access-features__icon svg,
.access-brand__trust svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.access-brand__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  color: #8f9bb8;
  font-size: 13px;
}
.access-brand__trust svg { color: var(--teal); }

/* Vista ilustrativa del panel: rectángulos planos, sin imágenes */
.access-preview {
  position: absolute;
  right: -36px;
  bottom: -28px;
  z-index: -1;
  width: 290px;
  border: 1px solid rgba(107, 147, 255, .28);
  border-radius: 14px;
  background: rgba(13, 22, 48, .85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: rotate(-6deg);
}
.access-preview__bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.access-preview__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.access-preview__body { display: flex; gap: 12px; padding: 14px; }
.access-preview__side { display: grid; align-content: start; gap: 8px; width: 54px; }
.access-preview__side b,
.access-preview__row b { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.access-preview__side b:first-child { background: rgba(107, 147, 255, .55); }
.access-preview__main { flex: 1; }
.access-preview__row { display: grid; grid-template-columns: 1fr .6fr; gap: 8px; margin-bottom: 14px; }
.access-preview__chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.access-preview__chart s {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent-text), rgba(59, 107, 255, .35));
}
.access-preview__chart s:last-child { background: linear-gradient(180deg, var(--teal), rgba(45, 212, 191, .35)); }

/* -------------------------------- Formulario -------------------------------- */
.access-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px clamp(28px, 5vw, 64px);
}
.access-form > * { width: 100%; max-width: 420px; margin-inline: auto; }
.access-form__head { margin-bottom: 28px; text-align: center; }
.access-form__head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.access-form__head p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.google-button:hover:not(:disabled) { border-color: #b9c3d8; background: #f7f9fd; }
.google-button:disabled { opacity: .6; cursor: default; }
.google-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-auth-google][hidden] { display: none; }

.access-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--ink-faint);
  font-size: 13px;
}
.access-divider::before,
.access-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.access-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  transition: border-color .2s, box-shadow .2s;
}
.access-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 107, 255, .14); }
.access-field:has(input[aria-invalid=true]) { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(198, 47, 75, .12); }
.access-field > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0 12px 0 16px;
  fill: none;
  stroke: #7d879c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.access-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 0;
  border: 0;
  border-radius: var(--radius-control);
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}
.access-field input::placeholder { color: #8f98ab; }

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  color: #7d879c;
  background: none;
}
.password-toggle:hover { color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .icon-eye-off,
.password-toggle[aria-pressed=true] .icon-eye { display: none; }
.password-toggle[aria-pressed=true] .icon-eye-off { display: block; }

.access-forgot { display: flex; justify-content: flex-end; margin: -2px 0 22px; }
.access-forgot a, .access-switch a, .access-legal a { font-weight: 700; text-decoration: none; }
.access-forgot a { font-size: 14px; }
.access-forgot a:hover, .access-switch a:hover, .access-legal a:hover { text-decoration: underline; }
.access-form a:focus-visible, .access-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.access-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: var(--radius-control);
  color: #fff;
  background: var(--accent);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(59, 107, 255, .7);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.access-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.access-submit:hover:not(:disabled) { background: var(--accent-hover); }
.access-submit:hover:not(:disabled) svg { transform: translateX(3px); }
.access-submit:active:not(:disabled) { transform: translateY(1px); }
.access-submit:disabled { opacity: .7; cursor: default; box-shadow: none; }
.access-submit:focus-visible { outline: 3px solid rgba(59, 107, 255, .45); outline-offset: 3px; }

.access-message {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: #1f4fd8;
  background: #edf2ff;
  font-size: 14px;
  line-height: 1.45;
}
.access-message.is-error { color: #9b1c36; background: #fdecef; }
.access-message[hidden] { display: none; }

.access-link {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: none;
  font-size: 14px;
  font-weight: 700;
}
.access-link:hover:not(:disabled) { text-decoration: underline; }
.access-link:disabled { color: var(--ink-faint); cursor: default; }
.login-resend { display: block; margin: 12px auto 0; }
.login-resend[hidden] { display: none; }

.access-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  white-space: nowrap;
}
.access-switch::before,
.access-switch::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.access-legal { margin: 14px auto 0; color: var(--ink-faint); font-size: 12.5px; text-align: center; }

/* ------------------- Componentes de las demás pantallas de acceso ------------------- */
.access-form__head .access-step-label { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Campo con nota debajo */
.access-note { margin: -6px 0 18px; color: var(--ink-faint); font-size: 12.5px; line-height: 1.45; }

/* Dirección web: https:// [nombre] .ycosweb.com */
.access-field--address input { padding-right: 8px; }
.address-prefix { flex-shrink: 0; padding-left: 16px; color: var(--ink-faint); font-size: 15px; user-select: none; }
.address-suffix {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  color: var(--ink);
  background: #f5f7fc;
  font-size: 15px;
  font-weight: 700;
  user-select: none;
}

/* Requisitos de la contraseña: plegados, se despliegan solo cuando hacen falta (password-rules.js) */
.access-field--with-hint { margin-bottom: 0; }
.password-rules-wrap {
  display: grid;
  grid-template-rows: 0fr;
  margin-bottom: 14px;
  visibility: hidden;
  transition: grid-template-rows .28s ease, visibility 0s linear .28s;
}
.password-rules-wrap[data-open=true] { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s ease, visibility 0s; }
.password-rules-wrap > .password-rules { min-height: 0; overflow: hidden; }
.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 10px 2px 0;
  list-style: none;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.3;
}
.password-rules li { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.password-rules li::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.password-rules li[data-state=pending] { color: #b45309; }
.password-rules li[data-state=ok] { color: #0f8f7f; }
.password-rules li[data-state=ok]::before {
  width: 8px;
  height: 4px;
  border-radius: 0;
  background: none;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}

/* Aceptar términos */
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; }
.terms-check input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.terms-check input[aria-invalid=true] { outline: 2px solid var(--danger); outline-offset: 2px; }
.terms-check label { color: var(--ink-soft); font-size: 13px; line-height: 1.5; cursor: pointer; }
.terms-check a { font-weight: 700; text-decoration: none; }
.terms-check a:hover { text-decoration: underline; }
.signup-summary[hidden], .terms-check[hidden] { display: none; } /* el display de arriba pisaría el atributo hidden */

/* Registro: pasos y resumen del paso 1 */
.signup-steps { display: flex; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.signup-steps[hidden] { display: none; }
.signup-steps li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 3px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s, border-color .2s;
}
.signup-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}
.signup-steps li.is-current { border-color: var(--accent); color: var(--ink); }
.signup-steps li.is-current span { border-color: var(--accent); color: #fff; background: var(--accent); }
.signup-steps li.is-done { border-color: var(--teal); color: var(--ink-soft); }
.signup-steps li.is-done span { border-color: var(--teal); color: #0f8f7f; background: #e6fbf8; }

.signup-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #f5f7fc;
}
.signup-summary__label { flex-shrink: 0; color: var(--ink-faint); font-size: 13px; }
/* width 0 + flex: una dirección larga no ensancha la tarjeta (se corta con "...") */
.signup-summary__value { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

/* Estados de resultado ("Revisá tu email", "Listo", "El enlace no es válido") */
.auth-state { text-align: center; outline: none; }
.auth-state[hidden] { display: none; }
.state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--accent);
  background: #edf2ff;
}
.state-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.state-icon--ok { color: #0f8f7f; background: #e6fbf8; }
.state-icon--warn { color: #b45309; background: #fff4e5; }
.state-title { margin: 0 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.state-text { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.state-text strong { color: var(--ink); word-break: break-all; }
.state-alt { display: block; margin: 16px auto 0; }
a.access-submit { text-decoration: none; }

.access-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.access-secondary:hover:not(:disabled) { border-color: #b9c3d8; background: #f7f9fd; }
.access-secondary:disabled { color: var(--ink-faint); background: #f5f7fc; cursor: default; }
.access-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* CAPTCHA (Turnstile), solo si el núcleo lo pide */
.captcha-box { display: flex; justify-content: center; min-height: 65px; margin-top: 16px; }
.captcha-box[hidden] { display: none; }

/* ------------------- Ilustraciones de cada sección (planas, CSS) ------------------- */
.art {
  position: absolute;
  right: -34px;
  bottom: -92px; /* asoma solo la parte de arriba: no tapa la lista */
  z-index: -1;
  width: 270px;
  border: 1px solid rgba(107, 147, 255, .28);
  border-radius: 14px;
  background: rgba(13, 22, 48, .88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: rotate(-6deg);
}
.art--more { bottom: -48px; } /* pantallas con menos texto: se ve más de la ilustración */
.art__bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.art__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.art__body { padding: 14px 16px 16px; }
.art__body > .art__chip { margin-bottom: 12px; }
.art__line { display: block; height: 7px; margin-bottom: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.art__line--short { width: 55%; }
.art__line--accent { width: 40%; background: rgba(107, 147, 255, .55); }
.art__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #062b27;
  background: var(--teal);
  font-size: 11px;
  font-weight: 800;
}
.art__chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--accent-text);
  background: rgba(59, 107, 255, .16);
}
.art__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art__button { display: block; width: 62%; height: 26px; margin-top: 14px; border-radius: 8px; background: var(--accent); }

/* Registro: barra de direcciones con la dirección que escribe */
.art__url {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 6px;
  color: #c9d4f2;
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.art__url b { color: #fff; font-weight: 700; }
.art__hero { height: 54px; margin-bottom: 12px; border-radius: 8px; background: linear-gradient(120deg, rgba(59, 107, 255, .55), rgba(45, 212, 191, .35)); }

/* Restablecer: contraseña y fuerza */
.art__dots { display: flex; gap: 6px; margin: 4px 0 12px; }
.art__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5f5; }
.art__strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.art__strength i { height: 6px; border-radius: 3px; background: var(--teal); }
.art__strength i:last-child { background: rgba(45, 212, 191, .35); }

/* -------------------------------- Responsive -------------------------------- */
@media (max-width: 1100px) {
  .access-brand { padding: 44px 40px; }
  .access-preview, .art { width: 240px; right: -50px; }
}
/* Pantallas bajas de escritorio: se compacta en lugar de generar scroll */
@media (min-width: 901px) and (max-height: 760px) {
  .access { padding-block: 16px 12px; gap: 10px; }
  .access-card { min-height: 0; }
  .access-brand { gap: 20px; padding-block: 34px; }
  .access-features { margin-top: 20px; gap: 10px; }
  .access-form { padding-block: 34px; }
  .access-form__head { margin-bottom: 20px; }
  .access-divider { margin: 16px 0; }
  .access-switch { margin-top: 20px; }
  .access-preview, .art { display: none; } /* en pantallas bajas taparía la lista */
  .art--more { display: block; bottom: -92px; }
}
/* Registro (el formulario más largo): más compacto en notebooks para que entre sin scroll */
@media (min-width: 901px) and (max-height: 900px) {
  .access-page--dense .access { padding-block: 12px 10px; gap: 8px; }
  .access-page--dense .access-form { padding-block: 26px; }
  .access-page--dense .access-form__head { margin-bottom: 14px; }
  .access-page--dense .access-form__head h2 { font-size: 26px; }
  .access-page--dense .access-form__head p { display: none; }
  .access-page--dense .signup-steps { margin-bottom: 14px; }
  .access-page--dense .signup-summary { margin-bottom: 12px; padding-block: 8px; }
  .access-page--dense .google-button { height: 44px; }
  .access-page--dense .access-divider { margin: 12px 0; }
  .access-page--dense .access-field { height: 46px; margin-bottom: 10px; }
  .access-page--dense .access-field--with-hint { margin-bottom: 0; }
  .access-page--dense .password-rules-wrap { margin-bottom: 10px; }
  .access-page--dense .terms-check { margin-bottom: 14px; }
  .access-page--dense .access-submit { height: 48px; }
  .access-page--dense .access-note { margin-bottom: 14px; }
  .access-page--dense .access-switch { margin-top: 16px; }
  .access-page--dense .access-brand { padding-block: 34px; gap: 20px; }
}
/* Tablet y móvil: el panel de marca pasa arriba, compacto (sin lista ni ilustración) */
@media (max-width: 900px) {
  .access { padding: 16px 14px 14px; }
  .access-card { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 520px; }
  .access-brand { gap: 18px; padding: 26px 26px 28px; }
  .access-brand__logo img { width: 120px; }
  .access-brand h1 { font-size: 30px; }
  .access-brand__text { margin-top: 10px; font-size: 14px; }
  .access-features, .access-preview, .access-brand__trust, .art { display: none; }
  .access-kicker { margin-bottom: 10px; font-size: 11px; }
  .access-form { padding: 30px 24px 26px; }
  .access-form__head { margin-bottom: 22px; }
  .access-form__head h2 { font-size: 25px; }
  .access-footer { max-width: 520px; }
}
@media (max-width: 380px) {
  .access-switch::before, .access-switch::after { display: none; }
  .access-switch { justify-content: center; }
}

/* Movimiento reducido: sin transiciones ni desplazamientos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Transición entre documentos (login <-> registro) */
@view-transition { navigation: auto; }

/* Registro: en "Confirmá tu email" no se repite el título del formulario */
.access-form:has(#sentState:not([hidden])) .access-form__head { display: none; }

/* Mientras se comprueba si ya hay sesión (ver js/ya-con-sesion.js), el formulario no se ve ni se puede tocar */
.access-checking { display: none; }
.is-checking .access { visibility: hidden; pointer-events: none; }
.is-checking .access-checking { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted, #9aa6c4); font-weight: 600; }
