/* 911 Pizzas: ingreso, inicio de comercios y resumen de operación. */
.login-page {
  --access-wine: #781224;
  padding: 0;
  background: #faf0df;
}
.login-page .page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
  place-items: stretch;
  align-items: center;
  isolation: isolate;
  background: linear-gradient(140deg, #f6e5cb, #fbf2e4 62%);
}
.login-page .access-hero {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  display: block;
  background: #170c08;
  clip-path: polygon(0 0, 100% 0, 83% 100%, 0 100%);
}
.login-page .access-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
}
.login-page .access-logo {
  position: absolute;
  z-index: 1;
  top: clamp(.8rem, 3vw, 2.1rem);
  left: clamp(.8rem, 3vw, 2.1rem);
  display: block;
  width: clamp(6rem, 11vw, 10rem);
  filter: drop-shadow(0 4px 8px #210e08a0);
}
.login-page .access-logo img { display: block; width: 100%; height: auto; }
.login-page .login-card {
  box-sizing: border-box;
  grid-column: 2;
  width: min(100%, 36rem);
  max-width: none;
  justify-self: center;
  margin: 0;
  padding: clamp(1.5rem, 4.5vw, 5.25rem) clamp(1.25rem, 3.1vw, 3.4rem);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.login-page .login-card .access-eyebrow {
  margin: 0 0 .75rem;
  color: var(--access-wine);
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login-page .login-card h1 {
  margin: 0;
  color: var(--access-wine);
  font-family: system-ui, sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 5.25rem);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.067em;
  text-transform: uppercase;
  text-wrap: balance;
}
.login-page .login-card .lead { margin: .95rem 0 1.6rem; }
.login-page .login-card .stack-form { gap: .9rem; }
.login-page .login-card input {
  min-height: 3.1rem;
  background: #fffcf5;
  border-color: #a98779;
}
.login-page .login-card .button-primary { min-height: 3.2rem; background: #781224; }
.login-page .login-card .button-primary:hover { background: #5b0d1b; }
.login-page :is(input, button, a):focus-visible {
  outline: 2px solid #781224;
  outline-offset: 3px;
}
.login-page .access-logo:focus-visible { outline-color: #fff2de; }
@media (max-width: 760px) {
  .login-page .page-shell { display: block; }
  .login-page .access-hero {
    position: relative;
    width: 100%;
    height: clamp(10rem, 40vw, 15rem);
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  }
  .login-page .access-hero img { object-position: center 42%; }
  .login-page .access-logo { width: 5.5rem; top: .55rem; left: .55rem; }
  .login-page .login-card { margin-inline: auto; padding-top: 1.2rem; }
  .login-page .login-card h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); }
  .login-page .login-card .lead { margin-bottom: 1.1rem; }
}

/* The links, destinations and amounts come from the existing account view. */
main:has(.cuenta-importes) .page-heading {
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: 1.15rem;
  color: #fff7e8;
  background: linear-gradient(112deg, #281715 5%, #44191d 66%, #781224);
}
main:has(.cuenta-importes) .page-heading :is(h1, p, .eyebrow) { color: inherit; }
main:has(.cuenta-importes) .page-heading .eyebrow { color: #ffda94; }
main:has(.cuenta-importes) .page-heading :is(.button-primary,.px-primary) {
  color: #401719 !important;
  background: #ffdc91;
}
main:has(.cuenta-importes) .panel.cuenta-panel {
  border-color: #e7d8c6;
  box-shadow: 0 8px 25px #3b1c130d;
}
main .cuenta-panel .cuenta-importes { gap: clamp(.7rem, 2vw, 1rem); }
main .cuenta-panel .cuenta-mosaico:any-link {
  min-height: 8rem;
  padding: clamp(.95rem, 2vw, 1.3rem);
  border-radius: .9rem;
  background: #f4e5cb;
  border-color: #e3cda8;
  color: #42231d;
}
main .cuenta-panel .cuenta-mosaico:is([href$="#cuenta-deuda"], .px-tile-debt):any-link {
  background: #ffdc83;
  border-color: #eaba59;
  color: #45220b;
}
main .cuenta-panel .cuenta-mosaico:is([href$="#cuenta-stock"], .px-tile-stock):any-link {
  background: #eee1cb;
  border-color: #dccaad;
  color: #40271e;
}
main .cuenta-panel .cuenta-mosaico:is([href*="transferencia"], .px-tile-pending):any-link {
  background: #781224;
  border-color: #781224;
  color: #fff7ea;
}
main .cuenta-panel .cuenta-mosaico.px-tile-credit:any-link {
  background: #32211d;
  border-color: #32211d;
  color: #fff7ea;
}
main .cuenta-panel .cuenta-mosaico small { color: inherit; }
main .cuenta-panel .cuenta-mosaico:focus-visible {
  outline: 2px solid #781224;
  outline-offset: 3px;
}

/* Apply only to the admin overview, identified by its two dashboard grids. */
main:has(.attention-grid):has(.stats-grid) .attention-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: .9rem;
}
main:has(.attention-grid):has(.stats-grid) .attention-card {
  min-height: 7.25rem;
  padding: 1rem;
  background: #fffcf5;
  border-radius: .9rem;
}
main:has(.attention-grid):has(.stats-grid) .attention-card > strong {
  color: #781224;
  font-variant-numeric: tabular-nums;
}
main:has(.attention-grid):has(.stats-grid) .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .9rem;
}
main:has(.attention-grid):has(.stats-grid) .stat-card {
  min-height: 8.5rem;
  border-radius: .9rem;
}
main:has(.attention-grid):has(.stats-grid) .stat-card::after { display: none; }
main:has(.attention-grid):has(.stats-grid) .stat-card strong { font-variant-numeric: tabular-nums; }
main:has(.attention-grid):has(.stats-grid) .stat-red { background: #781224; }
main:has(.attention-grid):has(.stats-grid) .stat-yellow { background: #ffdc83; }
main:has(.attention-grid):has(.stats-grid) .stat-red :is(span,small),
main:has(.attention-grid):has(.stats-grid) .stat-dark :is(span,small) { color: #fff2dd; }

/* Everything below the public map keeps its existing links and anchors. */
.landing-page .landing-audiences {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(.9rem, 2vw, 1.45rem);
  margin: clamp(1.8rem, 5vw, 4rem) 0 1.25rem;
}
.landing-page .landing-audiences > article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: clamp(16rem, 28vw, 22rem);
  padding: clamp(1.35rem, 3.4vw, 3rem);
  border: 1px solid #e6cdb2;
  border-radius: 1.25rem;
  background: #fcf1dd;
}
.landing-page .landing-audiences > article:first-child {
  color: #fff7e7;
  border-color: #351b16;
  background:
    linear-gradient(100deg, #241612 5%, #241612fc 30%, #241612c9 56%, #24161240 100%),
    url("/assets/brand/acceso-horno-desktop.webp") 78% 44% / cover no-repeat #241612;
}
.landing-page .landing-audiences h2,
.landing-page .outlet-join h2 {
  margin: 0 0 .8rem;
  max-width: 19ch;
  font-size: clamp(1.7rem, 3.35vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.landing-page .landing-audiences > article p { max-width: 38ch; }
.landing-page .landing-audiences > article:first-child p { color: #fff3dc; }
.landing-page .landing-audiences > article p.eyebrow { margin: 0 0 .9rem; color: #82182b; }
.landing-page .landing-audiences > article:first-child p.eyebrow { color: #ffdc91; }
.landing-page .landing-audiences article a {
  min-height: 44px;
  margin-top: auto;
  padding: .65rem 1.05rem;
}
.landing-page .landing-audiences > article:first-child a {
  color: #3a1913;
  background: #ffdf9f;
  border-radius: .75rem;
  text-decoration: none;
}
.landing-page .landing-audiences > article:first-child a:hover { background: #fff0ca; }
.landing-page .landing-audiences a:focus-visible,
.landing-page .outlet-join a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.landing-page .landing-steps {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  margin: 0 0 1.25rem;
  border: 1px solid #ebd9c4;
  border-radius: 1.15rem;
  background: #fffbf2;
}
.landing-page .landing-steps h2 { margin: 0 0 1rem; font-size: clamp(1.3rem, 2vw, 2rem); }
.landing-page .landing-steps ol { gap: .75rem; margin: 0; padding: 0; list-style: none; }
.landing-page .landing-steps li {
  border-top: 2px solid #e1a764;
  border-radius: .45rem;
  padding: .95rem 1rem;
  background: #f9edda;
}
.landing-page .landing-steps li p { margin: .4rem 0 0; }
.landing-page .outlet-join {
  margin: 0 0 1.5rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 0;
  background: linear-gradient(112deg, #671021, #80172a 74%, #651425);
  color: #fff3de;
}
.landing-page .outlet-join h2 { color: #fff3de; }
.landing-page .outlet-join a.button-primary {
  color: #481a17;
  background: #ffdd98;
  box-shadow: none;
}
.landing-page .outlet-join a.button-primary:hover { background: #fff0ca; }
@media (max-width: 720px) {
  .landing-page .landing-audiences { grid-template-columns: minmax(0, 1fr); }
  .landing-page .landing-audiences > article { min-height: 15rem; }
  .landing-page .landing-audiences > article:first-child {
    background-image: linear-gradient(100deg,#241612 4%,#241612dc 55%,#24161252), url("/assets/brand/acceso-horno-mobile.webp");
  }
  .landing-page .landing-steps ol { grid-template-columns: minmax(0, 1fr); }
  .landing-page .outlet-join { flex-direction: column; align-items: flex-start; }
  .landing-page .outlet-join a { white-space: normal; }
}
