/* ══════════════════════════════════════════════════════════════════
   GINNOA · Auth pages — v2 split layout
   Panel izquierdo (brand teal + valor) + panel derecho (form claro)
   ══════════════════════════════════════════════════════════════════ */

.layout-auth {
  background: #f4f6f5;
  min-height: 100dvh;
}
.layout-auth .site-header,
.layout-auth footer.site-footer { display: none !important; }

.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
}

.auth-shell {
  width: 100%;
  max-width: 1100px;
  min-height: min(720px, calc(100dvh - 64px));
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: clamp(20px, 2vw, 28px);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 40px 80px -30px rgba(0, 34, 30, 0.28),
    0 12px 30px -12px rgba(0, 34, 30, 0.12);
  border: 1px solid rgba(0, 34, 30, 0.06);
  isolation: isolate;
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
}

/* ───── Panel BRAND (izquierda) ───────────────────────── */
.auth-brand {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 204, 0, 0.16), transparent 55%),
    linear-gradient(160deg, #00221e 0%, #00443f 45%, #00665c 100%);
  overflow: hidden;
}
@media (max-width: 900px) {
  .auth-brand { min-height: 260px; padding: 32px 28px; }
}

/* Muisca decorativa — dos espirales sutiles */
.auth-brand__muisca-a,
.auth-brand__muisca-b {
  position: absolute;
  pointer-events: none;
  background: url("/assets/img/logo/isotipo.svg?v=20260617") center/contain no-repeat;
  filter: invert(1) opacity(0.06);
}
.auth-brand__muisca-a {
  width: 240px; height: 240px;
  top: -60px; right: -60px;
  transform: rotate(-18deg);
}
.auth-brand__muisca-b {
  width: 180px; height: 180px;
  bottom: -50px; left: -40px;
  transform: rotate(24deg);
  filter: invert(1) opacity(0.045);
}
/* Glow amber suave */
.auth-brand__glow {
  position: absolute;
  width: 460px; height: 460px;
  left: -140px; bottom: -180px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.20), transparent 62%);
  pointer-events: none;
  filter: blur(20px);
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-brand__logo img { display: block; height: 38px; width: auto; }

.auth-brand__body { max-width: 42ch; }
.auth-brand__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffcc00;
  padding: 5px 12px;
  background: rgba(255, 204, 0, 0.14);
  border: 1px solid rgba(255, 204, 0, 0.32);
  border-radius: 999px;
  margin-bottom: 20px;
}
.auth-brand__title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.auth-brand__title em {
  font-style: normal;
  color: #ffcc00;
}
.auth-brand__lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
}

.auth-brand__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-brand__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.94);
}
.auth-brand__perks li span {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 204, 0, 0.18);
  border: 1px solid rgba(255, 204, 0, 0.32);
  color: #ffcc00;
  border-radius: 10px;
  font-size: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-brand__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
.auth-brand__foot a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color .2s;
}
.auth-brand__foot a:hover { color: #ffcc00; }

/* ───── Panel FORM (derecha) ───────────────────────── */
.auth-card {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  position: relative;
}

/* Logo mini solo visible cuando el panel brand se oculta en mobile */
.auth-card__brand-mini {
  display: none;
  align-self: center;
  margin-bottom: 4px;
}
.auth-card__brand-mini img { display: block; }
@media (max-width: 900px) {
  .auth-card__brand-mini { display: block; }
}

.auth-card__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.auth-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-accent, #00665c);
}
.auth-card__title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: #0a1f1d;
}
.auth-card__lead {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #55625f;
  margin: 0;
  max-width: 40ch;
}

/* ───── Botón Google — pro glass con estado loading ───────────────────────── */
.auth-btn-google {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(0, 34, 30, 0.14);
  border-radius: 14px;
  background: #fff;
  color: #0a1f1d;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform .25s cubic-bezier(.16, 1, .3, 1),
    border-color .25s,
    box-shadow .25s,
    background .25s;
  box-shadow:
    0 2px 4px rgba(0, 34, 30, 0.04),
    0 8px 24px -12px rgba(0, 34, 30, 0.12);
}
.auth-btn-google:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0, 102, 92, 0.35);
  background: #fafcfb;
  box-shadow:
    0 4px 8px rgba(0, 34, 30, 0.06),
    0 16px 32px -16px rgba(0, 102, 92, 0.35),
    0 0 0 4px rgba(0, 102, 92, 0.08);
}
.auth-btn-google:active:not(:disabled) { transform: translateY(0); }
.auth-btn-google:focus-visible {
  outline: none;
  box-shadow:
    0 2px 4px rgba(0, 34, 30, 0.04),
    0 0 0 3px rgba(0, 102, 92, 0.35);
}
.auth-btn-google:disabled { cursor: wait; opacity: 0.7; }
.auth-btn-google svg { flex-shrink: 0; }

.auth-btn-google__spinner {
  display: none;
  position: absolute;
  right: 20px;
  color: var(--brand-accent, #00665c);
  font-size: 16px;
}
.auth-btn-google.is-loading .auth-btn-google__spinner { display: inline-flex; }
.auth-btn-google.is-loading .auth-btn-google__label {
  opacity: 0.55;
}

/* ───── Error inline ───────────────────────── */
.auth-card__error {
  margin: 0;
  padding: 12px 14px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-card__error i {
  color: #dc2626;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ───── Divider ───────────────────────── */
.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #97a3a0;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 4px 0 0;
}
.auth-card__divider::before,
.auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 34, 30, 0.10);
}
.auth-card__divider span { flex-shrink: 0; }

/* ───── Lista de cuentas soportadas ───────────────────────── */
.auth-card__accounts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-card__accounts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #55625f;
}
.auth-card__accounts li i {
  color: var(--brand-accent, #00665c);
  width: 16px;
  text-align: center;
  font-size: 12px;
}
.auth-card__accounts code {
  background: rgba(0, 102, 92, 0.06);
  color: var(--brand-accent, #00665c);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ───── Nota de seguridad ───────────────────────── */
.auth-card__security {
  margin: 0;
  padding: 10px 12px;
  background: rgba(0, 102, 92, 0.05);
  border: 1px solid rgba(0, 102, 92, 0.12);
  border-radius: 10px;
  font-size: 0.78rem;
  color: #38524f;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-card__security i { color: var(--brand-accent, #00665c); flex-shrink: 0; }

/* ───── Legal + back ───────────────────────── */
.auth-card__legal {
  font-size: 0.74rem;
  color: #7d8886;
  line-height: 1.5;
  text-align: center;
}
.auth-card__legal a {
  color: var(--brand-accent, #00665c);
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 92, 0.35);
  text-underline-offset: 2px;
}
.auth-card__legal a:hover { text-decoration-color: currentColor; }

.auth-card__back {
  align-self: center;
  font-size: 0.85rem;
  color: #7d8886;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-card__back:hover {
  color: var(--brand-accent, #00665c);
  background: rgba(0, 102, 92, 0.06);
}

/* Reduced motion — sin transforms */
@media (prefers-reduced-motion: reduce) {
  .auth-btn-google,
  .auth-brand__perks li span { transition: none !important; }
  .auth-btn-google:hover { transform: none !important; }
}
