/* Pixel Assistance · Login administrador
 * Diseño dedicado: limpieza visual tipo workforce SaaS + lenguaje Pixel.
 * No afecta el resto de módulos.
 */

body.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  overflow-x: hidden;
  background: #f5f7fb;
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  background: #f5f7fb;
}

.login-showcase {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 58px) clamp(32px, 5vw, 72px) 30px;
  color: #18213a;
  background:
    radial-gradient(circle at 12% 15%, rgba(57,185,208,.17), transparent 27%),
    radial-gradient(circle at 91% 7%, rgba(101,72,232,.16), transparent 31%),
    linear-gradient(145deg, #f7fbff 0%, #eef3ff 54%, #f8f7ff 100%);
  border-right: 1px solid rgba(103,119,166,.12);
}

.login-showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(54,89,233,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,89,233,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}

.login-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -185px;
  bottom: -170px;
  border: 55px solid rgba(54,89,233,.055);
  border-radius: 50%;
}

.login-brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pixel-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(145deg, #3157e8, #6548e8 72%);
  box-shadow: 0 11px 27px rgba(54,89,233,.23);
}

.login-brand-copy,
.mobile-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.login-brand strong,
.mobile-brand strong {
  color: #25304a;
  font-size: 13px;
  letter-spacing: .55px;
}

.login-brand small,
.mobile-brand small {
  margin-top: 4px;
  color: #77819a;
  font-size: 11px;
  font-weight: 650;
}

.login-showcase-body {
  width: min(650px, 100%);
  margin: auto 0;
  padding: clamp(42px, 6vh, 74px) 0;
}

.product-kicker,
.access-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25px;
}

.product-kicker {
  padding: 8px 11px;
  color: #3e56bd;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(54,89,233,.12);
  box-shadow: 0 7px 20px rgba(38,55,95,.05);
}

.product-kicker i,
.access-kicker i,
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38c594;
  box-shadow: 0 0 0 4px rgba(56,197,148,.12);
}

.login-showcase h1 {
  max-width: 650px;
  margin: 20px 0 15px;
  color: #17213a;
  font-size: clamp(37px, 4.25vw, 60px);
  line-height: .99;
  letter-spacing: -2.3px;
}

.login-showcase h1 span {
  color: #3857d9;
}

.showcase-lead {
  max-width: 600px;
  margin: 0;
  color: #69748d;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.62;
}

.showcase-preview {
  width: min(580px, 100%);
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(84,105,159,.13);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 22px 55px rgba(44,61,103,.11);
  backdrop-filter: blur(13px);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 2px 13px;
}

.preview-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-head span {
  color: #8a93a8;
  font-size: 10px;
  font-weight: 750;
}

.preview-head strong {
  color: #27314a;
  font-size: 12px;
}

.preview-head .live-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #278b68;
  border-radius: 999px;
  background: #eefaf6;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.preview-metric {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 9px;
  border: 1px solid #edf0f6;
  border-radius: 14px;
  background: #fff;
}

.metric-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.metric-blue { color: #3a59dc; background: #edf1ff; }
.metric-amber { color: #c78522; background: #fff6e7; }
.metric-purple { color: #6548e8; background: #f2efff; }
.metric-cyan { color: #238fa7; background: #eaf9fc; }

.preview-metric > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-metric b {
  overflow: hidden;
  color: #8992a7;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-metric strong {
  margin-top: 1px;
  color: #263149;
  font-size: 15px;
}

.login-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.login-capabilities span {
  position: relative;
  padding: 7px 10px 7px 24px;
  color: #68738a;
  border-radius: 10px;
  background: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 700;
}

.login-capabilities span::before {
  content: "✓";
  position: absolute;
  left: 9px;
  color: #3857d9;
  font-weight: 900;
}

.showcase-footer {
  color: #8a93a7;
  font-size: 10px;
  font-weight: 650;
}

.login-access {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 58px);
  background: #fff;
}

.login-access-inner {
  width: min(430px, 100%);
}

.mobile-brand {
  display: none;
  margin-bottom: 32px;
}

.login-box {
  width: 100%;
}

.access-kicker {
  margin-bottom: 15px;
  padding: 7px 10px;
  color: #546076;
  border: 1px solid #e9ecf2;
  background: #f8f9fc;
}

.login-box h2 {
  margin: 0;
  color: #182137;
  font-size: clamp(30px, 3vw, 37px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.login-box > p {
  margin: 8px 0 29px;
  color: #7a8499;
  font-size: 13px;
  line-height: 1.55;
}

.login-box .field {
  margin-bottom: 15px;
  gap: 7px;
}

.login-box .field label {
  color: #4e5970;
  font-size: 11px;
  letter-spacing: .1px;
}

.input-shell {
  position: relative;
}

.login-box .input {
  height: 49px;
  min-height: 49px;
  padding: 10px 48px 10px 44px;
  color: #1d263c;
  border: 1px solid #e2e6ee;
  border-radius: 13px;
  background: #fbfcfe;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-box .input::placeholder {
  color: #a6aec0;
}

.login-box .input:hover {
  border-color: #d4d9e5;
  background: #fff;
}

.login-box .input:focus {
  border-color: rgba(54,89,233,.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(54,89,233,.08);
}

.field-icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #8f98ad;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  color: #66728b;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.password-toggle:hover {
  color: #3857d9;
  background: #f0f3ff;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 11px 17px;
  justify-content: space-between;
  border-radius: 13px;
  background: linear-gradient(115deg, #3157e8 0%, #4e55e6 55%, #6548e8 100%);
  box-shadow: 0 13px 27px rgba(54,89,233,.21);
}

.login-submit:hover {
  filter: none;
  box-shadow: 0 15px 31px rgba(54,89,233,.26);
}

.login-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.submit-label {
  flex: 1;
  text-align: center;
  padding-left: 20px;
}

.submit-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
}

.login-message {
  margin: 2px 0 12px;
  padding: 10px 12px;
  color: #b33e47;
  border: 1px solid rgba(239,100,105,.18);
  border-radius: 11px;
  background: rgba(239,100,105,.07);
  font-size: 11px;
  font-weight: 650;
}

.login-message.is-success {
  color: #24795d;
  border-color: rgba(69,199,154,.2);
  background: rgba(69,199,154,.08);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: #9199aa;
  font-size: 10px;
  font-weight: 650;
}

.secure-note span {
  color: #38a77e;
}

.login-access-footer {
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 100%;
  color: #a1a8b7;
  text-align: center;
  font-size: 9px;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(365px, .88fr);
  }

  .login-showcase {
    padding-left: 38px;
    padding-right: 38px;
  }

  .login-showcase h1 {
    font-size: clamp(36px, 5vw, 48px);
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.login-page {
    background: #fff;
  }

  .login-shell {
    display: block;
    min-height: 100svh;
  }

  .login-showcase {
    display: none;
  }

  .login-access {
    min-height: 100svh;
    padding: 34px 24px 72px;
  }

  .login-access-inner {
    width: min(460px, 100%);
  }

  .mobile-brand {
    display: flex;
  }
}

@media (max-width: 480px) {
  .login-access {
    place-items: start center;
    padding: max(26px, env(safe-area-inset-top)) 18px 68px;
  }

  .mobile-brand {
    margin-bottom: 42px;
  }

  .pixel-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 13px;
  }

  .login-box h2 {
    font-size: 31px;
  }

  .login-box > p {
    margin-bottom: 25px;
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  .login-showcase {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .login-showcase-body {
    padding: 28px 0;
  }

  .login-showcase h1 {
    margin-top: 14px;
    font-size: clamp(33px, 4vw, 47px);
  }

  .showcase-preview {
    margin-top: 18px;
  }

  .login-capabilities {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-box .input,
  .password-toggle {
    transition: none;
  }
}
