/* ===========================================================
   Limpiecito.pe — Ingresar / Crear cuenta (auth/login.php)
   Referente: pantallas partidas tipo Batmaid. Panel de marca con
   color y textura + formulario amplio sobre trama clara.
   Forma inclinada, sin esquinas redondas.
   =========================================================== */

.au {
  display: grid;
  min-height: calc(100vh - 64px);
  background: var(--tx-grain-soft), var(--tx-dots), var(--hielo);
  background-size: 180px 180px, 22px 22px, auto;
}
@media (min-width: 1024px) {
  .au { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ---------- Panel de marca ---------- */
.au-brand {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  padding: 2.5rem 1.25rem 2.75rem;
  background:
    var(--tx-grain),
    repeating-linear-gradient(-78deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 24px),
    var(--azul);
  background-size: 180px 180px, auto, auto;
  display: grid; gap: 2rem; align-content: center;
  order: 2;   /* en movil va despues del formulario: primero ingresar */
}
/* filo menta inclinado */
.au-brand::after {
  content: ""; position: absolute; z-index: -1;
  left: 0; top: 0; width: 34%; height: 5px;
  background: var(--azul-claro);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
@media (min-width: 1024px) {
  .au-brand {
    order: 0;
    padding: 4rem 4.5rem 4rem 3.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .75fr);
    align-items: center; gap: 2.5rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
  }
}
@media (min-width: 1280px) { .au-brand { padding-left: max(3.5rem, calc((100vw - 80rem) / 2 + 2rem)); } }

.au-brand__title {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.05; font-weight: 800; letter-spacing: -0.035em;
  max-width: 14ch; text-wrap: balance;
}
/* sin franja vacia entre la pantalla de ingreso y el pie */
main.au ~ footer.site-footer { margin-top: 0; }
.au-brand__lead { margin-top: .9rem; font-size: 1.1rem; line-height: 1.55; color: var(--azul-claro); max-width: 30rem; }
.au-brand__list { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.au-brand__list li { display: flex; gap: .9rem; align-items: center; font-size: .92rem; color: var(--azul-claro); line-height: 1.35; }
.au-brand__list b { display: block; color: #fff; font-size: 1.02rem; font-weight: 600; }
.au-brand__icon {
  width: 46px; height: 42px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--dark-navy);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.au-brand__icon i, .au-brand__icon svg { width: 20px; height: 20px; }

.au-brand__price {
  margin-top: 1.9rem;
  display: inline-flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  color: var(--azul-claro); font-size: .95rem; text-decoration: none;
}
.au-brand__price:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.au-brand__price-tag {
  position: relative; isolation: isolate;
  padding: .4rem 1.1rem; color: var(--dark-navy);
}
.au-brand__price-tag b { font-size: 1.2rem; font-weight: 800; }
.au-brand__price-tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--azul-claro); transform: skewX(var(--slant));
}

/* Foto en marco inclinado + etiqueta de confianza */
.au-brand__photo { position: relative; margin: 0; display: none; }
@media (min-width: 640px) { .au-brand__photo { display: block; max-width: 26rem; } }
.au-brand__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; display: block;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  filter: drop-shadow(0 0 0 transparent);
}
.au-brand__photo::before {
  /* sombra/relieve detras del marco */
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  background: rgba(15,23,42,0.35);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}
.au-brand__chip {
  position: absolute; left: -8px; bottom: 12%;
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 1.2rem .65rem .8rem;
  color: var(--slate-600); font-size: .8rem; line-height: 1.3;
  isolation: isolate;
}
.au-brand__chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff; transform: skewX(var(--slant));
  box-shadow: 0 18px 32px -16px rgba(15,23,42,0.6);
}
.au-brand__chip b { display: block; color: var(--dark-navy); font-size: .9rem; }
.au-brand__chip-icon {
  width: 34px; height: 32px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--azul-claro); color: var(--dark-navy);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.au-brand__chip-icon i, .au-brand__chip-icon svg { width: 18px; height: 18px; }

/* ---------- Lado del formulario ---------- */
.au-side { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem 3rem; }
@media (min-width: 1024px) { .au-side { padding: 3.5rem 3rem; } }
.au-side__inner {
  width: 100%; max-width: 36rem;
  background: #fff;
  padding: 1.75rem 1.4rem 1.6rem;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
@media (min-width: 640px) { .au-side__inner { padding: 2.5rem 2.6rem 2.2rem; } }
.au-side { filter: drop-shadow(0 26px 40px rgba(15,23,42,0.12)); }

.au-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 500; color: var(--slate-600); text-decoration: none;
}
.au-back:hover { color: var(--primary-blue); }
.au-title { margin-top: 1rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; color: var(--dark-navy); }
.au-sub { margin-top: .3rem; color: var(--slate-600); font-size: 1rem; }

.au-pending {
  margin-top: 1.1rem;
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .8rem 1rem;
  background: var(--hielo); color: var(--tinta); font-size: .92rem; line-height: 1.45;
  border-left: 4px solid var(--azul);
}
.au-pending i, .au-pending svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* Pestañas inclinadas */
.au-tabs { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px; }
.au-tab {
  position: relative; isolation: isolate;
  min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--slate-600);
  background: transparent;
}
.au-tab::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--soft-bg); transform: skewX(var(--slant));
  transition: background-color .15s ease;
}
.au-tab:hover::before { background: #E6ECF3; }
.au-tab.is-active { color: #fff; }
.au-tab.is-active::before { background: var(--dark-navy); }
.au-tab:focus-visible { outline: none; }
.au-tab:focus-visible::before { box-shadow: 0 0 0 3px rgba(42,79,190,0.45); }

.au-alert { margin-top: 1rem; display: flex; gap: .55rem; align-items: flex-start; padding: .75rem .9rem; font-size: .9rem; }
.au-alert--err { background: #FEF2F2; color: #991B1B; border-left: 4px solid #DC2626; }
.au-alert--ok  { background: #ECFDF5; color: #065F46; border-left: 4px solid #10B981; }

/* Google */
.au-google {
  position: relative; isolation: isolate;
  margin: 1.25rem 6px 0;
  min-height: 50px;
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  font-weight: 600; color: var(--dark-navy); text-decoration: none;
}
.au-google::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--slate-300);
  transform: skewX(var(--slant));
  transition: box-shadow .15s ease, background-color .15s ease;
}
.au-google:hover::before { background: var(--slate-50); box-shadow: inset 0 0 0 1.5px var(--slate-400); }
.au-google:focus-visible { outline: none; }
.au-google:focus-visible::before { box-shadow: inset 0 0 0 1.5px var(--slate-400), 0 0 0 3px rgba(42,79,190,0.45); }

.au-divider { margin: 1.2rem 0 .3rem; display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--slate-500); }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--slate-200); }

/* Campos */
.au-form { display: grid; gap: 1rem; margin-top: .6rem; }
.au-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .au-grid { grid-template-columns: 1fr 1fr; }
  .au-field--full { grid-column: 1 / -1; }
}
.au-field { display: grid; gap: .4rem; }
.au-field__label { font-size: .88rem; font-weight: 600; color: var(--slate-700); }
.au-field__wrap { position: relative; display: block; }
.au-field__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--slate-400); pointer-events: none;
}
.au-field__input {
  width: 100%; height: 52px;
  padding: 0 46px 0 44px;
  font-size: 1rem; color: var(--dark-navy);
  background: #fff;
  border: 1.5px solid var(--slate-300);
  border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.au-field__input::placeholder { color: var(--slate-400); }
.au-field__input:hover { border-color: var(--slate-400); }
.au-field__input:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(42,79,190,0.15); }
.au-field__wrap:focus-within .au-field__icon { color: var(--primary-blue); }
.au-field__eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate-500);
}
.au-field__eye:hover { color: var(--dark-navy); }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .9rem; }
.au-check { display: inline-flex; align-items: center; gap: .5rem; color: var(--slate-600); cursor: pointer; }
.au-check input { width: 18px; height: 18px; accent-color: var(--primary-blue); }
.au-check--block { align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.au-check--block input { margin-top: 2px; flex-shrink: 0; }
.au-link { color: var(--primary-blue); font-weight: 600; text-decoration: none; }
.au-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.au-submit { width: calc(100% - 12px); margin: .4rem 6px 0; min-height: 52px; font-size: 1.02rem; }

.au-fine { margin-top: 1.25rem; display: flex; gap: .45rem; align-items: center; font-size: .8rem; color: var(--slate-500); }

/* ---------- Variante: panel de administración ---------- */
.au-brand--admin {
  background:
    var(--tx-grain),
    repeating-linear-gradient(-78deg, rgba(201,216,247,0.07) 0 2px, transparent 2px 26px),
    var(--tinta);
  background-size: 180px 180px, auto, auto;
}
@media (min-width: 1024px) { .au-brand--solo { grid-template-columns: minmax(0, 32rem); } }
.au-brand__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  position: relative; isolation: isolate; padding: .3rem .9rem; margin-left: 4px;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta);
}
.au-brand__eyebrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--azul-claro); transform: skewX(var(--slant)); }
.au-brand__eyebrow svg { width: 15px; height: 15px; }
.au-brand--admin .au-brand__title { margin-top: 1rem; }
.au-brand--admin .au-brand__icon { background: var(--azul); color: #fff; }
.au-check--block small { color: var(--slate-500); font-size: .84rem; }
.au-check--block b { color: var(--slate-700); font-weight: 600; }
.au-fine + .au-fine { margin-top: .5rem; }
