/* AXOPAQ | AXOCORE design system for human authentication.
   No external fonts, frameworks, trackers or inline scripts. */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #05111f;
  --bg-deep: #030b15;
  --panel: #0c1e30;
  --line: rgba(67, 141, 211, .36);
  --text: #f3f9ff;
  --muted: #b0c3d8;
  --soft: #748faa;
  --blue: #1194ff;
  --cyan: #38c8f4;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100%; color: var(--text); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.auth-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 62% at 61% 60%, rgba(13, 88, 166, .2), transparent 78%),
    radial-gradient(ellipse 39% 45% at 11% 5%, rgba(10, 86, 157, .25), transparent 79%),
    radial-gradient(ellipse 48% 38% at 100% 0%, rgba(32, 92, 149, .2), transparent 68%),
    linear-gradient(127deg, #06182a 0%, #051322 46%, #03101c 100%);
}

.auth-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background-image: radial-gradient(rgba(26, 139, 240, .62) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(110deg, #000 0%, transparent 17%, transparent 77%, #000 100%);
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18%;
  bottom: -35%;
  width: 75%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(9, 80, 157, .1), transparent 71%);
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  z-index: -1;
  top: -18%;
  left: -13%;
  width: 52vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  border: 4px solid rgba(17, 111, 206, .16);
  border-radius: 76px;
  transform: rotate(45deg);
  pointer-events: none;
}
.ambient-line {
  position: absolute;
  top: -7%;
  right: -5%;
  width: 39vw;
  height: 22vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(32, 115, 192, .09), transparent 70%);
  pointer-events: none;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(440px, 1.06fr);
  align-items: center;
  width: min(100% - 76px, 1460px);
  margin: auto;
  gap: clamp(28px, 4vw, 88px);
  padding: 54px 0 48px;
}

.auth-editorial {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: flex-end;
  padding: 0 10px 62px 4px;
}

.hero-art {
  position: absolute;
  top: 9px;
  left: 2%;
  width: min(68%, 400px);
  height: 390px;
  display: grid;
  place-items: center;
  opacity: .15;
  pointer-events: none;
}
.hero-art img {
  display: block;
  max-width: 100%;
  width: 340px;
  height: 340px;
  object-fit: contain;
  filter: none;
}
.auth-card {
  width: min(100%, 526px);
  margin-inline: auto;
  padding: 30px clamp(23px, 3.4vw, 46px) 29px;
  border: 1px solid rgba(50, 135, 215, .54);
  border-radius: 17px;
  background: linear-gradient(151deg, rgba(20, 43, 68, .88), rgba(8, 22, 37, .97) 42%, rgba(8, 25, 40, .97));
  box-shadow: 0 23px 85px rgba(0, 0, 0, .4), 0 0 72px rgba(5, 91, 171, .12), inset 0 1px rgba(136, 203, 255, .06);
  backdrop-filter: blur(22px);
}
.auth-brand { text-align: center; }
.auth-logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 6px;
  object-fit: contain;
}
.brand-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #b7cde2;
  font-size: 10px;
}
.brand-tagline span { width: 31px; height: 1px; background: rgba(183,205,226,.56); }
.brand-divider { height: 1px; margin: 17px 3px 18px; background: linear-gradient(90deg, transparent, rgba(128,172,213,.28), transparent); }
.product-wordmark { font-size: 33px; font-weight: 800; letter-spacing: -.065em; line-height: 1.12; }
.product-wordmark span { color: #169eff; }
.product-tagline { margin-top: 6px; color: #b8cbdc; font-size: 9px; letter-spacing: .26em; }
.product-tagline span { color: #23aafa; }

.auth-content { margin-top: 29px; }
.auth-content h1 {
  margin: 0 0 10px;
  color: #f4f9ff;
  font-size: clamp(24px, 2vw, 27px);
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: -.035em;
}
.auth-content p {
  margin: 0;
  color: #b2c8df;
  font-size: 14px;
  line-height: 1.55;
}
.auth-content form { margin-top: 23px; }
.auth-content label {
  display: block;
  margin: 18px 0 8px;
  color: #edf6ff;
  font-size: 13px;
  font-weight: 660;
}
.auth-content label:first-of-type { margin-top: 0; }

.auth-content input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 11px 14px;
  color: #f3f9ff;
  background: rgba(17, 35, 54, .82);
  border: 1px solid #3e5b77;
  border-radius: 9px;
  outline: none;
  font-size: 15px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.auth-content input::placeholder { color: #8199b0; opacity: 1; }
.auth-content input:focus-visible {
  border-color: #1cafff;
  box-shadow: 0 0 0 3px rgba(16, 156, 248, .17);
  background: rgba(15, 36, 57, .97);
}
.auth-content input:disabled { opacity: .65; cursor: not-allowed; }

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}
.input-shell > input { padding-left: 49px; }
.input-shell.has-toggle > input { padding-right: 53px; }
.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d7e7f7;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.input-shell:focus-within .input-icon { stroke: #47baff; }
.input-action {
  display: grid;
  place-items: center;
  position: absolute;
  right: 7px;
  width: 37px;
  height: 37px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #afc6db;
  border-radius: 7px;
}
.input-action:hover { color: white; background: rgba(54, 113, 170, .15); }
.input-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.input-action:focus-visible, .auth-button:focus-visible, a:focus-visible {
  outline: 2px solid #77d1ff;
  outline-offset: 3px;
}

.auth-button, .auth-content form > button[type=submit] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 12px 19px;
  color: white;
  font-size: 15px;
  font-weight: 760;
  border: 1px solid rgba(95, 196, 255, .18);
  border-radius: 10px;
  background: linear-gradient(180deg, #16a1ff 0%, #0775e9 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 10px 22px rgba(2, 93, 182, .19);
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.auth-button:hover, .auth-content form > button[type=submit]:hover { filter: brightness(1.1); }
.auth-button:active, .auth-content form > button[type=submit]:active { transform: translateY(1px); }
.auth-button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.card-footer {
  margin-top: 23px;
  padding: 22px 0 0;
  text-align: center;
  border-top: 1px solid rgba(104, 154, 202, .16);
  color: #a0b8d0;
  font-size: 12px;
}
.card-footer span { margin: 0 5px; color: #49aaf4; }

.page-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  width: min(100% - 80px, 1460px);
  margin: 0 auto;
  padding: 22px 0 29px;
}
.footer-motto { color: #7194bb; font-size: 10px; letter-spacing: .43em; white-space: nowrap; }

.error, .auth-content .errorlist {
  color: #ffc1c6;
  background: rgba(160, 36, 58, .15);
  border: 1px solid rgba(247, 105, 125, .43);
  border-radius: 9px;
  padding: 12px 14px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.45;
}
.auth-content .errorlist { padding-left: 27px; }
.auth-content .hint, .auth-content .help {
  display: block;
  color: #8da8c3;
  font-size: 12px;
  line-height: 1.55;
  margin: 16px 0 0;
}
.auth-content .mfa-step { display: block; margin-top: 11px; }
.auth-content .mfa-qr {
  display: block;
  width: min(210px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 20px auto 8px;
  padding: 13px;
  border: 7px solid #fff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.auth-content .code-field { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-content .code-field::placeholder { font-size: 15px; letter-spacing: normal; }
.auth-content .footnote { margin-top: 14px; }
.auth-content .account-reminder { margin-top: 17px; }
.auth-content .account-reminder strong { color: #d6eaff; }
.auth-content .input-shell + label { margin-top: 20px; }
.auth-content .stacked-errors .errorlist { margin: 7px 0; }


@media (max-width: 1150px) {
  .auth-layout {
    grid-template-columns: minmax(0, .73fr) minmax(410px, 1fr);
    gap: 16px;
  }
  .auth-editorial { min-height: 600px; }
  .hero-art { width: 80%; }
}
@media (max-width: 820px) {
  .auth-layout {
    display: flex;
    justify-content: center;
    width: min(100% - 42px, 560px);
    padding: 42px 0 20px;
  }
  .auth-editorial { display: none; }
  .auth-card { width: 100%; }
  .ambient-grid { left: -33%; width: 95vw; height: 95vw; }
  .page-footer { width: min(100% - 42px, 560px); padding: 20px 0; }
  .page-footer { justify-content: center; }
}
@media (max-width: 520px) {
  .auth-layout { width: min(100% - 24px, 480px); padding: 18px 0; }
  .auth-card { padding: 28px 23px 25px; border-radius: 14px; }
  .brand-mark { width: 71px; height: 67px; border-radius: 18px; }
  .brand-name { font-size: 21px; }
  .brand-divider { margin: 21px 0 16px; }
  .product-wordmark { font-size: 30px; }
  .product-tagline { font-size: 9px; letter-spacing: .17em; }
  .auth-content { margin-top: 29px; }
  .auth-content h1 { font-size: 25px; }
  .page-footer { width: min(100% - 24px, 480px); padding: 12px 0 24px; }
}
@media (max-width: 355px) {
  .auth-card { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; }
}

.input-action.is-visible .eye-strike { opacity: 0; }
.auth-content form.cancel-form { margin-top: 4px; }
.auth-content form.cancel-form > button[type=submit] {
  margin-top: 12px;
  min-height: 40px;
  color: #adc8e2;
  border: 1px solid rgba(86, 153, 213, .23);
  background: rgba(26, 57, 84, .12);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}
.auth-content form.cancel-form > button[type=submit]:hover {
  background: rgba(51, 110, 164, .2);
  color: #f1f8ff;
}
