/* Login, activación y error de Resto: mismo lenguaje visual del login del panel HEXTECPRO. */
:root {
  --login-ink: #07111f;
  --login-muted: #61708a;
  --login-blue: #1d4ed8;
  --login-cyan: #18e1d4;
  --login-green: #10b981;
  --login-card: rgba(248, 250, 252, .95);
}

html, body { min-height: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body.login-page {
  --login-bg-orb: url("../img/hextecpro.png");
  --login-bg-core: url("../img/hextecpro.png");
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 212, 191, .28), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .24), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0b1220 46%, #102a3f 100%);
  background-color: #07111f;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.login-skip {
  position: absolute; top: 12px; left: 16px; z-index: 20;
  display: flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: 10px; background: #fff; color: #0f172a; font-weight: 700;
  transform: translateY(-170%);
}
.login-skip:focus { transform: translateY(0); }

.login-shell { position: relative; min-height: 100vh; min-height: 100svh; padding: 28px 36px; isolation: isolate; }
.login-bg, .login-shell::before, .login-shell::after { position: fixed; inset: 0; content: ""; pointer-events: none; }
.login-bg {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 18, 33, .2), rgba(8, 18, 33, .82)),
    var(--login-bg-core) left 8% center / min(760px, 58vw) auto no-repeat,
    var(--login-bg-orb) right 4% top 12% / min(620px, 46vw) auto no-repeat;
  opacity: .54;
  filter: saturate(1.08);
}
.login-shell::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .94) 0%, rgba(15, 42, 63, .58) 48%, rgba(7, 17, 31, .92) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 90px);
}
.login-shell::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 255, 255, .2), transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%, rgba(6, 12, 24, .54));
}

.login-stage {
  width: min(1240px, 100%);
  min-height: calc(100svh - 220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  grid-template-areas: "brand brand" "showcase form";
  align-content: center;
  align-items: center;
  gap: 36px 64px;
  padding: 12px 0 24px;
  outline: none;
}
.login-stage--single { min-height: calc(100svh - 56px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "form"; justify-items: center; }

.login-brand {
  grid-area: brand;
  justify-self: center;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(6, 15, 28, .52);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
  color: inherit;
  text-decoration: none;
}
.login-brand:focus-visible { outline: 3px solid #72f4c6; outline-offset: 4px; }
.login-brand__mark img { display: block; width: 60px; height: 70px; object-fit: contain; }
.login-brand__copy { min-width: 0; display: grid; }
.login-brand__name { font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: .92; font-weight: 900; letter-spacing: .02em; }
.login-brand__name em { font-style: normal; font-weight: 800; color: #b8e7f6; font-size: .48em; letter-spacing: .04em; vertical-align: middle; }
.login-brand__tagline { margin-top: 4px; color: #b8e7f6; font-weight: 800; letter-spacing: .01em; }

.login-card {
  grid-area: form;
  width: min(480px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: var(--login-card);
  color: var(--login-ink);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
  backdrop-filter: blur(22px);
}
.login-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.login-card__head > div { min-width: 0; }
.login-card__icon {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #102045, #1d4ed8); font-size: 1.4rem;
}
.login-card__icon.is-warning { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.login-card h1 { margin: 1px 0 2px; font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -.005em; overflow-wrap: anywhere; }
.login-card__lead { margin: -6px 0 16px; color: #475569; font-size: .92rem; font-weight: 650; overflow-wrap: anywhere; }
.login-card__help { margin: 14px 0 0; color: #475569; font-size: .84rem; font-weight: 650; text-align: center; }
.login-card__help a, .login-card a:not([class]) { color: #1d4ed8; font-weight: 800; }

.login-alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; margin-bottom: 14px;
  border-radius: 14px; background: #fff1f2; border: 1px solid #fecdd3; color: #be123c;
  font-weight: 800; font-size: .88rem; overflow-wrap: anywhere;
}
.login-alert.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.login-alert.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.login-alert[hidden] { display: none; }

.login-form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 7px; }
.login-label { color: #1e293b; font-size: .8125rem; font-weight: 800; }
.login-field-help { margin: -6px 0 0; color: #475569; font-size: .8rem; font-weight: 650; }
.login-control {
  min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-radius: 16px; background: #fff; border: 1px solid #d4def0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.login-control > i { color: #2563eb; font-size: 1rem; }
.login-control input {
  width: 100%; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent;
  color: #0f172a; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.35;
}
.login-control input::placeholder { color: #657894; font-weight: 650; opacity: 1; }
.login-control input:-webkit-autofill { -webkit-text-fill-color: #0f172a; -webkit-box-shadow: 0 0 0 1000px #fff inset; }
.login-control:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .24); }
.login-toggle-pass {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: #2563eb; font-size: 1.02rem; cursor: pointer; transition: background .14s ease;
}
.login-toggle-pass:hover { background: rgba(37, 99, 235, .10); }

.login-submit, .login-secondary {
  min-height: 54px; border: 0; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; text-decoration: none; transition: filter .18s ease;
}
.login-submit { color: #fff; background: linear-gradient(90deg, #1d4ed8, #1559ba); box-shadow: 0 12px 28px rgba(29, 78, 216, .20); }
.login-submit:hover { filter: brightness(1.04); }
.login-submit:disabled { cursor: not-allowed; opacity: .55; }
.login-secondary { width: 100%; color: #1e293b; background: #e2e8f0; }
.login-actions { display: grid; gap: 10px; }
.login-actions form { margin: 0; }
:is(.login-submit, .login-secondary, .login-toggle-pass, .login-card a):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

.login-card__foot {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  color: #64748b; font-size: .78rem; font-weight: 750;
}

/* Vista previa del salón construida con CSS: no requiere imágenes ni datos reales. */
.login-showcase { grid-area: showcase; min-width: 0; }
.login-showcase__copy { margin-bottom: 22px; }
.login-showcase h2 { margin: 0 0 14px; font-size: clamp(2.5rem, 3.5vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.login-showcase h2 span { color: #72f4c6; }
.login-showcase__copy > p:last-child { max-width: 480px; margin: 0; color: #bdcce0; font-size: 1rem; line-height: 1.5; }
.login-preview { border-radius: 20px; background: rgba(3, 10, 20, .55); border: 1px solid rgba(148, 183, 231, .2); overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.login-preview__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(15, 32, 54, .85); border-bottom: 1px solid rgba(148, 183, 231, .16); }
.login-preview__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.login-preview__bar > span:nth-child(2) { background: #f59e0b; }
.login-preview__bar > span:nth-child(3) { background: #22c55e; }
.login-preview__bar strong { margin-left: 8px; color: #dbe7f6; font-size: .82rem; font-weight: 700; }
.login-preview__body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; padding: 16px; }
.login-preview__tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.login-table {
  --tone: #22c55e; display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 14%, rgba(15, 32, 54, .9)); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  color: #f1f5f9; text-align: center;
}
.login-table i { color: var(--tone); font-size: 1.15rem; }
.login-table strong { font-size: .92rem; }
.login-table small { color: #b6c6dc; font-size: .7rem; font-weight: 700; line-height: 1.2; }
.login-table.is-ocupada { --tone: #f59e0b; }
.login-table.is-cuenta { --tone: #38bdf8; }
.login-table.is-reservada { --tone: #a78bfa; }
.login-preview__kds { display: grid; align-content: start; gap: 10px; }
.login-preview__kds > p { display: flex; align-items: center; gap: 6px; margin: 0; color: #fbbf24; font-weight: 800; font-size: .85rem; }
.login-ticket { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; color: #0f172a; font-size: .78rem; }
.login-ticket strong { font-size: .84rem; }
.login-ticket em { justify-self: start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-style: normal; font-weight: 800; font-size: .7rem; }
.login-ticket.is-ready em { background: #d1fae5; color: #065f46; }
.login-showcase__foot { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: #9fb3ce; font-size: .8125rem; }
.login-showcase__foot i { color: #72f4c6; }

.login-features { width: min(1240px, 100%); margin: 12px auto 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.login-feature {
  position: relative; min-height: 112px; padding: 14px 12px; border-radius: 20px; text-align: center;
  background: rgba(15, 32, 54, .78); color: #f1f5f9; border: 1.5px solid rgba(255, 255, 255, .62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.login-feature:nth-child(1) { --feature-accent: #14b8a6; border-color: #14b8a655; }
.login-feature:nth-child(2) { --feature-accent: #f97316; border-color: #f9731655; }
.login-feature:nth-child(3) { --feature-accent: #eab308; border-color: #eab30855; }
.login-feature:nth-child(4) { --feature-accent: #8b5cf6; border-color: #8b5cf655; }
.login-feature:nth-child(5) { --feature-accent: #6366f1; border-color: #6366f155; }
.login-feature:nth-child(6) { --feature-accent: #d946ef; border-color: #d946ef55; }
.login-feature::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 999px;
  background: var(--feature-accent, #14b8a6); box-shadow: 0 0 0 4px color-mix(in srgb, var(--feature-accent, #14b8a6) 20%, transparent);
}
.login-feature span {
  width: 42px; height: 42px; margin: 0 auto 9px; border-radius: 14px; display: grid; place-items: center;
  color: var(--feature-accent, #0f766e); background: color-mix(in srgb, var(--feature-accent, #14b8a6) 22%, rgba(15, 32, 54, .9));
  border: 1px solid color-mix(in srgb, var(--feature-accent, #14b8a6) 45%, transparent); font-size: 1.18rem;
}
.login-feature strong { display: block; font-size: .92rem; font-weight: 800; color: #f1f5f9; }
.login-feature small { display: block; margin-top: 4px; color: #a9b9d2; font-weight: 700; line-height: 1.2; }

@media (min-width: 981px) and (max-width: 1199.98px) {
  .login-stage { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 32px; }
  .login-preview__body { grid-template-columns: minmax(0, 1fr); }
  .login-preview__kds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-preview__kds > p { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .login-stage { min-height: auto; width: min(680px, 100%); grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "form" "showcase"; justify-items: center; gap: 32px; padding: 8px 0 24px; }
  .login-stage--single { grid-template-areas: "brand" "form"; }
  .login-showcase { width: 100%; margin-top: 8px; }
  .login-brand__name { font-size: clamp(2.1rem, 7vw, 3.6rem); }
  .login-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-bg { background-size: min(680px, 88vw) auto, min(520px, 75vw) auto; background-position: center 35%, center 10%; }
}

@media (max-width: 640px) {
  .login-shell { padding: 20px 16px 24px; }
  .login-brand { width: 100%; justify-content: center; border-radius: 18px; padding: 14px 12px; gap: 12px; }
  .login-brand__mark img { width: 36px; height: 42px; }
  .login-brand__tagline { font-size: .75rem; line-height: 1.4; }
  .login-brand__name { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .login-card { padding: 22px 20px; border-radius: 24px; }
  .login-card__head { align-items: flex-start; }
  .login-card h1 { font-size: 1.25rem; }
  .login-control { padding: 0 10px 0 14px; }
  .login-card__foot { align-items: flex-start; text-align: center; line-height: 1.4; }
  .login-stage { gap: 24px; }
  .login-showcase h2 { font-size: 2.3rem; }
  .login-preview__body { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .login-preview__tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-preview__kds { grid-template-columns: minmax(0, 1fr); }
  .login-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .login-feature { min-height: 104px; padding: 12px 9px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-control, .login-submit, .login-secondary, .login-toggle-pass { transition: none; }
}
