@font-face {
  font-family: Inter;
  src: local("Inter");
}

.auth-page {
  color-scheme: dark;
  --ink: #eef4ff;
  --muted: #aec0da;
  --blue: #9ac5ff;
  --line: #304768;
  --paper: #192b46;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(420px, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0e192c;
  -webkit-font-smoothing: antialiased;
}

.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page [hidden] { display: none !important; }
.auth-page h1, .auth-page h2, .auth-page p { margin: 0; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page button, .auth-page input { font: inherit; }
.auth-page button { cursor: pointer; }
.auth-page button:disabled { cursor: not-allowed; }
.auth-page a:focus-visible, .auth-page button:focus-visible {
  outline: 2px solid #84b7ff;
  outline-offset: 4px;
}

.auth-story {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(30px, 4vw, 72px) clamp(32px, 5vw, 96px) 28px;
  color: #fff;
  background:
    radial-gradient(ellipse at 65% 88%, #2c64b4 0%, transparent 70%),
    linear-gradient(155deg, #102944, #102748 60%, #173e6e);
}

.auth-brand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
}

.auth-brand img { display: block; object-fit: contain; }
.auth-story .auth-brand img { width: 44px; height: 44px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.auth-story .auth-brand { gap: 12px; }
.auth-story .auth-brand:focus-visible { outline-color: #a7d5ff; }
.auth-story-copy {
  width: 100%;
  max-width: 850px;
  margin: auto 0;
  padding: clamp(38px, 6.25vh, 83px) 0;
}

.auth-story .seller-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  color: #d9e8ff;
  font-size: 11px;
  font-weight: 740;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-story h1 {
  font-size: clamp(40px, 4.35vw, 82px);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -.062em;
}

.auth-story .product-description {
  max-width: 43ch;
  margin-top: 22px;
  color: #cfddf1;
  font-size: clamp(15px, 1.3vw, 22px);
  line-height: 1.62;
}

.story-footer { color: #b5c9e5; font-size: 12px; }

.auth-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3vw, 53px) clamp(28px, 4vw, 68px) 28px;
  border-inline-start: 1px solid #294266;
  background: radial-gradient(ellipse at 24% 4%, #172a47 0, transparent 68%), #0e192c;
}
.auth-top { display: flex; align-items: center; justify-content: flex-end; }
.auth-top .back-link { color: var(--muted); font-size: 13px; font-weight: 590; }
.back-link span { margin-left: 3px; }
.auth-top .back-link:hover { color: var(--blue); }
.auth-top .auth-mobile-brand { display: none; }
.auth-card { width: min(100%, 422px); margin: auto; padding: 45px 0; }

.auth-card .auth-eyebrow {
  margin-bottom: 11px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#auth-title {
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1.12;
  letter-spacing: -.056em;
  font-weight: 770;
}
#auth-description { margin-top: 10px; color: var(--muted); font-size: 15px; }

.auth-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111f36;
}

.auth-options button {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 630;
}

.auth-options button:hover { color: var(--blue); }
.auth-options button[aria-pressed="true"] {
  color: var(--ink);
  background: #243d60;
  border-color: #415d85;
  box-shadow: 0 1px 3px #06102066;
}

#auth-form { display: grid; gap: 19px; margin-top: 24px; }
.auth-field { min-width: 0; }
.auth-field label { color: var(--ink); font-size: 14px; font-weight: 680; }
.auth-field-heading { display: flex; min-height: 23px; justify-content: space-between; align-items: center; gap: 8px; }
.auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 55px;
  margin-top: 7px;
  border: 1px solid #496181;
  border-radius: 10px;
  background: var(--paper);
}

.auth-input:focus-within { border-color: #84b7ff; box-shadow: 0 0 0 3px #609fff38; }
.auth-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 53px;
  padding: 12px 14px 12px 42px;
  border: 0;
  border-radius: inherit;
  color: var(--ink);
  background: transparent;
  outline: none;
  font-size: 16px;
}
.auth-input input::placeholder { color: #9aafce; opacity: 1; }
.auth-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 100px var(--paper) inset;
  caret-color: var(--ink);
}

.input-icon { position: absolute; z-index: 1; top: 50%; left: 16px; transform: translateY(-50%); pointer-events: none; color: #9ab6da; }
.input-mail { width: 15px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; overflow: hidden; }
.input-mail::after {
  position: absolute;
  top: -5px;
  left: 2px;
  width: 8px;
  height: 8px;
  content: "";
  transform: rotate(45deg);
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
}
.input-lock { width: 13px; height: 10px; margin-top: 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.input-lock::before {
  position: absolute;
  top: -7px;
  left: 1.5px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.auth-show-password {
  flex-shrink: 0;
  margin-right: 5px;
  min-width: 55px;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 13px !important;
  font-weight: 680 !important;
}

.auth-show-password:hover { color: var(--blue); background: #253f62; }
.auth-page .auth-text-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: none;
  font-size: 13px;
  font-weight: 680;
}
.auth-page .auth-text-button:hover { text-decoration: underline; }
.auth-field .auth-field-hint { margin-top: 7px; color: var(--muted); font-size: 13px; }

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 53px;
  border: 1px solid #508beb;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(110deg, #2469dd, #1758c5);
  box-shadow: 0 4px 13px #07142a65;
  font-weight: 720 !important;
}
.auth-submit:hover:not(:disabled) { background: #2465d1; }
.auth-submit:disabled { opacity: .65; }
.auth-submit-arrow { font-size: 19px; line-height: 1; }

.auth-card .auth-support {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.auth-support .support-note { margin-top: 4px; color: var(--muted); font-size: 13px; }
.auth-demo { margin-top: 18px; }
.auth-footer { color: var(--muted); font-size: 12px; text-align: center; }
.activation-return { display: inline-block; margin-top: 22px; }

.auth-card .auth-notice, .auth-card #auth-error {
  margin: 24px 0 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
.auth-notice p { margin: 5px 0 10px; color: var(--muted); }
.auth-card #auth-error { margin: 0; border-color: #9c5465; color: #ffd1d8; background: #361f30; }

.auth-help {
  width: min(440px, calc(100% - 36px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 70px #06102088;
}
.auth-help::backdrop { background: #112b5170; }
.auth-help h2 { font-size: 22px; letter-spacing: -.03em; }
.auth-help p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.auth-help form { display: flex; justify-content: flex-end; margin-top: 22px; }
.auth-close { min-height: 42px; padding: 8px 18px; border: 0; border-radius: 8px; color: #fff; background: #1758c5; font-weight: 680 !important; }
.auth-close:hover { background: #2465d1; }

@media (max-width: 1100px) {
  .auth-page { grid-template-columns: minmax(0, 1.18fr) minmax(370px, 1fr); }
  .auth-story { padding-inline: 32px; }
  .order-preview { padding-inline: 5px; }
  .file-preview { gap: 8px; padding: 9px; }
  .file-thumbnail { width: 45px; height: 45px; }
  .file-thumbnail img { width: 36px; height: 36px; }
}

@media (max-width: 860px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-main { grid-row: 1; min-height: 100svh; padding: 22px clamp(22px, 5vw, 48px); border-inline-start: 0; }
  .auth-top { justify-content: space-between; gap: 16px; }
  .auth-top .auth-mobile-brand { display: inline-flex; color: var(--ink); font-size: 24px; }
  .auth-card { padding: 40px 0; }
  #auth-title { font-size: clamp(32px, 7vw, 42px); }
  .auth-story { padding: 22px; }
  .auth-story .auth-brand, .story-footer { display: none; }
  .auth-story-copy { max-width: 540px; margin: 0 auto; padding: 25px 0; }
  .auth-story h1 { font-size: clamp(32px, 7vw, 48px); }
}

@media (max-width: 420px) {
  .auth-top .back-link { font-size: 12px; }
  .file-thumbnail { display: none; }
}

@media (min-width: 861px) and (max-height: 780px) {
  .auth-story { padding-block: 30px 20px; }
  .auth-story-copy { padding-block: 36px; }
  .auth-card { padding-block: 32px; }
}

.onboarding-form { display: grid; gap: 17px; margin-top: 24px; }
.auth-input.plain input { padding-left: 14px; }
.onboarding-links { display: flex; justify-content: space-between; gap: 12px; }
.onboarding-form + #auth-error { margin-top: 14px; }
#login-code-error { color: #ffd1d8; }
#login-code-status { color: var(--muted); }

/* Account controls and verification share one quiet visual language. */
.auth-field label { display: inline-flex; align-items: center; gap: 8px; }
[data-auth-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-auth-icon] svg { width: 17px; height: 17px; flex-shrink: 0; }
.auth-field label [data-auth-icon] { color: #98b6dd; }
.auth-show-password { display: grid; place-items: center; min-width: 42px; width: 42px; padding: 9px; }
.auth-show-password svg { width: 21px; height: 21px; }
.verification-symbol { float: right; width: 44px; height: 44px; margin: 0 0 8px 14px; border: 1px solid #547bad; border-radius: 14px; color: #b6d5ff; background: #244367; box-shadow: 0 4px 18px #08132640; }
.verification-symbol svg { width: 25px; height: 25px; }
.verification-delivery { display: grid; gap: 5px; margin-top: 22px; padding: 15px 17px; border: 1px solid #334f72; border-radius: 11px; background: #14263f; }
.verification-delivery .delivery-label { color: #98b6dd; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.verification-delivery strong { color: var(--ink); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.verification-delivery > span:last-child { color: var(--muted); font-size: 12px; }
#verification-code { font-variant-numeric: tabular-nums; letter-spacing: .32em; font-size: 22px; }
.auth-card .verification-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.verification-note a { color: var(--blue); }
.auth-assistance { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.assistance-icon { flex: 0 0 36px; height: 36px; border-radius: 10px; color: #a6c5ee; background: #203651; }
.assistance-icon svg { width: 19px; height: 19px; }
.auth-assistance strong { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.auth-assistance a { color: var(--blue); font-size: 13px; font-weight: 650; }
.auth-assistance a:hover { text-decoration: underline; }
.auth-card .auth-feedback { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid #835166; border-radius: 11px; background: #302337; color: #f2cbd6; font-size: 13px; }
.auth-card .auth-feedback p { margin: 0; line-height: 1.55; }
.auth-feedback .feedback-icon { flex: 0 0 20px; margin-top: 1px; }
.feedback-icon svg { width: 20px; height: 20px; }
.auth-feedback strong { display: block; margin-bottom: 4px; color: #fff0d7; font-size: 14px; }
.auth-card #auth-error.license-suspended { color: #d6c7ae; background: #292b31; border-color: #766447; }
.license-suspended .feedback-icon { color: #e5bb78; }
.auth-feedback a { display: inline-block; margin-top: 9px; color: #b6d5ff; font-weight: 650; }
.auth-feedback a:hover { text-decoration: underline; }
.auth-card > #auth-error:not([hidden]) { margin-top: 18px; }

.auth-card:has(#verify-form:not([hidden])) { padding-block: 28px; }

.auth-top .home-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #89b5f02b; border-radius: 12px; background: #80b6ff07; transition: background .15s, border-color .15s; }
.auth-top .home-link:hover { background: #80b6ff12; border-color: #89b5f065; }
