/* CubixGear platform login. Standalone from the signed-in admin UI. */
:root {
  color-scheme: light;
  --auth-ink: #101c35;
  --auth-muted: #738097;
  --auth-blue: #1677ff;
  --auth-blue-dark: #075fe4;
  --auth-line: #dfe5ee;
  --auth-ring: rgba(22, 119, 255, .13);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--auth-ink); -webkit-text-size-adjust: 100%; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.auth-page {
  background: radial-gradient(ellipse at 12% 16%, #e5eeff 0, transparent 37%),
              radial-gradient(ellipse at 94% 90%, #e8f2ff 0, transparent 37%), #f3f6fc;
}
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 48px);
  display: grid;
  place-items: center;
}
.auth-layout {
  width: min(1160px, 100%);
  min-height: min(704px, calc(100dvh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  background: #fff;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(213, 223, 240, .9);
  box-shadow: 0 34px 100px -38px rgba(21, 42, 83, .23), 0 8px 25px rgba(30, 59, 101, .035);
}

/* Left: static CSS/SVG product illustration; no dashboard data is fabricated. */
.auth-showcase {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.3vw, 46px);
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 93% 76%, rgba(26, 107, 231, .33), transparent 45%),
              linear-gradient(153deg, #102e67 0%, #0d204a 45%, #0a1734 100%);
}
.auth-showcase::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -195px;
  top: -168px;
  border: 1px solid rgba(200, 221, 255, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(157, 197, 255, .028), 0 0 0 92px rgba(157, 197, 255, .022);
  z-index: -1;
}
.auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: -1;
  background-image: radial-gradient(rgba(189, 217, 255, .18) 1px, transparent 1px);
  background-size: 25px 25px;
  background-position: 12px 16px;
  -webkit-mask-image: linear-gradient(to top, black, transparent 80%);
  mask-image: linear-gradient(to top, black, transparent 80%);
}
.showcase-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: var(--auth-blue);
  color: #fff;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -.045em;
  box-shadow: 0 8px 20px rgba(7, 94, 229, .18);
}
.auth-brand-type { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.auth-brand-type strong { font-size: 18px; line-height: 1.28; font-weight: 750; letter-spacing: -.03em; }
.auth-brand-type small { font-size: 13px; font-weight: 450; line-height: 1.4; color: #8f9fb5; }
.auth-brand-light .auth-brand-type small { color: #9cafd0; }
.showcase-label {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(190, 211, 252, .17);
  border-radius: 100px;
  color: #bad1f5;
  background: rgba(216, 232, 255, .045);
  font-weight: 650;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .06em;
}
.label-spark, .kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ca1ff; box-shadow: 0 0 0 3px rgba(76, 161, 255, .15); }
.showcase-content { width: 100%; max-width: 455px; margin: auto 0; padding: 34px 0 38px; }
.showcase-eyebrow { color: #81baff; font-size: 12px; font-weight: 750; letter-spacing: .17em; }
.showcase-content h2 { font-size: clamp(31px, 3.25vw, 45px); letter-spacing: -.055em; line-height: 1.16; font-weight: 730; margin: 13px 0 14px; }
.showcase-content h2 span { color: #65a7ff; }
.showcase-content>p { max-width: 365px; font-size: 15px; color: #aebfda; line-height: 1.75; margin: 0; }
.showcase-art {
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid rgba(213, 229, 255, .26);
  border-radius: 17px;
  transform: perspective(900px) rotateY(-3deg) rotateX(2deg);
  transform-origin: left center;
  background: #f9fbff;
  box-shadow: 24px 24px 55px rgba(0, 0, 0, .2), 0 0 0 7px rgba(255, 255, 255, .055);
}
.art-header { display: flex; align-items: center; gap: 13px; height: 38px; padding: 0 13px; background: #fff; border-bottom: 1px solid #e8edf7; }
.art-dots { display: flex; gap: 4px; }
.art-dots i { width: 5px; height: 5px; background: #d6dfef; border-radius: 50%; }
.art-dots i:first-child { background: #78a9ed; }
.art-address { font-size: 12px; color: #8590a7; }
.art-badge { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #297cff; background: #eaf3ff; font-size: 12px; font-weight: 800; }
.art-content { padding: 16px 19px 14px; }
.art-intro { display: grid; gap: 7px; margin-bottom: 16px; }
.art-figure { height: 7px; background: #e5ecf6; border-radius: 8px; }
.art-figure-wide { width: 34%; height: 10px; background: #b8cce9; }
.art-figure-short { width: 22%; }
.art-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.art-stat { min-width: 0; height: 55px; display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid #e6edf7; border-radius: 9px; background: #fff; }
.art-stat-icon { flex: 0 0 19px; width: 19px; height: 19px; border-radius: 5px; background: #deecff; }
.art-stat-icon-alt { background: #e8e6ff; }
.art-stat-icon-third { background: #ddf4ed; }
.art-lines { display: grid; gap: 6px; min-width: 0; width: 100%; }
.art-lines i { display: block; width: 82%; height: 6px; border-radius: 9px; background: #e0e8f4; }
.art-lines i:last-child { width: 58%; height: 5px; background: #edf1f7; }
.art-chart { position: relative; height: 101px; margin-top: 10px; padding: 12px; border: 1px solid #e6edf7; border-radius: 9px; background: #fff; overflow: hidden; }
.art-chart-lines { position: absolute; inset: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.art-chart-lines i { display: block; width: 100%; border-top: 1px dashed #e6ecf6; }
.art-chart-curve { position: absolute; inset: 10px 12px 12px; width: calc(100% - 24px); height: calc(100% - 22px); }
.showcase-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #91abd2; font-size: 12px; }
.showcase-separator { width: 3px; height: 3px; border-radius: 50%; background: #6395d7; }

/* Right: accessible login form. */
.auth-main { min-width: 0; display: flex; flex-direction: column; padding: 38px clamp(40px, 6vw, 83px) 25px; }
.auth-panel { width: min(100%, 405px); margin: auto; }
.auth-mobile-brand { display: none; }
.auth-kicker { display: inline-flex; align-items: center; gap: 9px; color: #48729f; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.kicker-dot { background: var(--auth-blue); }
.auth-intro h1 { margin: 16px 0 12px; color: #0c1932; font-size: clamp(34px, 3.3vw, 42px); letter-spacing: -.06em; line-height: 1.14; font-weight: 760; }
.auth-intro h1 span { color: var(--auth-blue); }
.auth-intro p { margin: 0; color: var(--auth-muted); font-size: 15px; line-height: 1.75; max-width: 350px; }
.auth-form { display: grid; gap: 19px; margin-top: 34px; }
.auth-field { display: grid; gap: 9px; min-width: 0; }
.auth-field label { font-size: 14px; font-weight: 700; color: #20304b; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap input {
  width: 100%;
  height: 50px;
  min-width: 0;
  margin: 0;
  padding: 0 45px 0 44px;
  color: #16263c;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  outline: 0;
  font-size: 15px;
  font-weight: 450;
  box-shadow: 0 1px 1px rgba(28, 45, 72, .025);
  transition: border-color .16s, box-shadow .16s;
}
.auth-input-wrap input::placeholder { color: #9ba6b8; opacity: 1; }
.auth-input-wrap input:hover { border-color: #b8c9e2; }
.auth-input-wrap input:focus-visible { border-color: var(--auth-blue); box-shadow: 0 0 0 4px var(--auth-ring); }
.auth-input-icon { position: absolute; left: 15px; width: 18px; height: 18px; color: #91a1b8; pointer-events: none; }
.auth-field:focus-within .auth-input-icon { color: #4387e9; }
.auth-field.has-error input { border-color: #db545b; }
.auth-field-error { color: #b42338; font-size: 14px; line-height: 1.4; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; border-radius: 9px; color: #8797ac; cursor: pointer; }
.password-toggle:hover { color: #256fdd; background: #f1f6ff; }
.password-toggle:focus-visible { outline: 2px solid var(--auth-blue); outline-offset: 1px; }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.password-toggle.is-visible .eye-open { display: none; }
.auth-error { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #f2c4cb; border-radius: 10px; background: #fff4f5; padding: 12px; font-size: 14px; line-height: 1.5; color: #aa2634; }
.auth-error svg { width: 18px; height: 18px; flex: 0 0 auto; }
.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 50px; margin-top: 5px; padding: 0 16px;
  border: 1px solid #1269e6; border-radius: 12px; background: var(--auth-blue);
  color: #fff; font-size: 15px; line-height: 1.3; font-weight: 750;
  box-shadow: 0 8px 18px rgba(22, 119, 255, .17);
  cursor: pointer; transition: background .16s, box-shadow .16s, transform .16s;
}
.auth-submit svg { width: 17px; height: 17px; transition: transform .16s; }
.auth-submit:hover { background: var(--auth-blue-dark); box-shadow: 0 10px 23px rgba(22,119,255,.24); }
.auth-submit:hover svg { transform: translateX(3px); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 3px solid #95bfff; outline-offset: 3px; }
.auth-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; text-align: center; font-size: 13px; line-height: 1.55; color: #94a0b2; }
.auth-hint svg { width: 14px; height: 14px; flex: 0 0 auto; }
.auth-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: #a5afbf; font-size: 12px; }
@media (max-width: 1120px) {
  .auth-showcase { padding: 34px; }
  .auth-main { padding-left: 45px; padding-right: 45px; }
  .showcase-label { display: none; }
  .showcase-content h2 { font-size: 36px; }
}
@media (max-width: 900px) {
  .auth-layout { width: min(510px, 100%); min-height: min(665px, calc(100dvh - 48px)); grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-main { min-height: inherit; padding: 28px clamp(25px, 6vw, 46px) 22px; }
  .auth-mobile-brand { display: flex; }
  .auth-panel { padding: 40px 0 30px; }
}
@media (max-width: 520px) {
  .auth-shell { padding: 14px; }
  .auth-layout { min-height: calc(100dvh - 28px); border-radius: 21px; }
  .auth-main { padding: 24px 23px 18px; }
  .auth-panel { padding: 44px 0 28px; }
  .auth-intro h1 { font-size: 36px; }
  .auth-form { margin-top: 28px; gap: 18px; }
  .auth-hint { margin-top: 22px; }
  .auth-footer { margin-top: auto; }
}
@media (max-width: 360px) {
  .auth-main { padding: 21px 18px 17px; }
  .auth-intro h1 { font-size: 33px; }
  .auth-footer { font-size: 12px; }
  .auth-hint { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
