@font-face { font-family: Archivo; src: url('/assets/brand/Archivo-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url('/assets/brand/Archivo-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url('/assets/brand/Archivo-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #edf0f5;
  background: radial-gradient(ellipse at 4% 8%, #006ef018, transparent 50%), radial-gradient(ellipse at 92% 44%, #55f5c30b, transparent 45%), #090f1d;
  font: 17px/1.55 Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#ffffff13 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(#0008, transparent 80%);
}
.auth-page [hidden] { display: none !important; }
.auth-header, .auth-footer, .auth-layout { position: relative; width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 36px; }
.auth-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: #edf0f5; }
.auth-brand img { display: block; object-fit: contain; }
.auth-brand strong { display: block; font-size: 18px; letter-spacing: .13em; font-weight: 700; }
.auth-brand small { display: block; font-size: 13px; color: #aab4c8; margin-top: 2px; }
.auth-access { font-size: 13px; color: #aab4c8; border: 1px solid #ffffff16; border-radius: 999px; padding: 7px 14px; }
.auth-layout { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: clamp(40px, 7vw, 110px); flex: 1; padding: 48px 0 64px; margin-block: 0; }
.auth-eyebrow { font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .17em; color: #55efc4; margin: 0 0 18px; }
.auth-story h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.13; font-weight: 600; letter-spacing: -.035em; margin: 0 0 24px; }
.auth-story h2 span { color: #8cdae9; background: linear-gradient(110deg, #7fb6ff, #75dfff 55%, #55efc4); background-clip: text; -webkit-text-fill-color: transparent; }
.auth-description { max-width: 440px; color: #aab4c8; font-size: 18px; line-height: 1.7; margin: 0 0 34px; }
.auth-workflow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.auth-workflow li { display: flex; align-items: flex-start; gap: 18px; }
.auth-step { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid #75dfff25; border-radius: 10px; background: #75dfff07; color: #75dfff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.auth-workflow h3 { font-size: 16px; font-weight: 600; margin: 0 0 2px; }
.auth-workflow p { font-size: 14px; color: #aab4c8; line-height: 1.55; margin: 0; }
.auth-card { position: relative; padding: 40px; border: 1px solid #ffffff17; border-radius: 24px; background: linear-gradient(145deg, #1c2432, #141923 65%); box-shadow: 0 24px 80px #0003, inset 0 1px 0 #ffffff05; }
.auth-card::before { content: ''; position: absolute; top: -1px; left: 40px; right: 40px; height: 1px; background: linear-gradient(90deg, transparent, #75dfff66, transparent); }
.auth-card-mark { width: 44px; height: 44px; padding: 10px; border: 1px solid #75dfff30; background: #006ef01a; border-radius: 13px; color: #75dfff; margin-bottom: 26px; }
.auth-card-mark svg { display: block; width: 100%; height: 100%; }
.auth-card .auth-eyebrow { color: #aab4c8; font-size: 11px; margin-bottom: 8px; }
.auth-card h1 { font-size: 32px; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 12px; font-weight: 600; }
.auth-card #intro { color: #aab4c8; font-size: 16px; margin: 0 0 30px; }
.auth-card label { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #d1d7e1; }
.auth-card #username-label { margin-bottom: 22px; }
.auth-card input:not([type=checkbox]) { width: 100%; min-width: 0; height: 54px; margin-top: 10px; padding: 14px 16px; background: #090f1db3; border: 1px solid #ffffff24; border-radius: 10px; font-size: 16px; color: #edf0f5; outline-offset: 3px; transition: border-color .15s, box-shadow .15s; }
.auth-card input::placeholder { color: #8895aa; opacity: 1; }
.auth-card input:focus { border-color: #2688ff; box-shadow: 0 0 0 3px #006ef025; }
.auth-card .auth-password { position: relative; }
.auth-card #password { margin-top: 0; padding-right: 76px; }
.auth-password button { position: absolute; right: 5px; top: 5px; min-width: 60px; height: 44px; padding: 0 8px; border: 0; background: transparent; color: #75dfff; font-size: 13px; font-weight: 600; border-radius: 7px; }
.auth-password button:hover { background: #75dfff0e; }
.auth-card .auth-field-help { font-size: 13px; color: #aab4c8; margin: 8px 0 0; }
.auth-card .auth-submit { width: 100%; min-height: 54px; margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid #398fff; border-radius: 10px; background: linear-gradient(180deg, #087cfa, #0065df); box-shadow: 0 4px 16px #006ef025; color: #fff; font-size: 16px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.auth-card .auth-submit:hover:not(:disabled) { background: #1687ff; box-shadow: 0 4px 24px #006ef045; }
.auth-card .auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-arrow { font-size: 21px; line-height: 1; }
.auth-card .auth-message { font-size: 14px; line-height: 1.6; color: #ffc2bc; background: #fa3c3d0c; border: 1px solid #fa3c3d40; border-radius: 10px; padding: 12px 14px; margin: 18px 0 0; overflow-wrap: anywhere; }
.auth-card .auth-message.success { color: #8cf2cd; background: #0acc8b0c; border-color: #0acc8b40; }
.auth-support { border-top: 1px solid #ffffff12; padding-top: 24px; margin: 26px 0 0; font-size: 13px; line-height: 1.7; color: #aab4c8; }
.auth-back { display: inline-block; margin-top: 18px; color: #75dfff; font-size: 14px; text-decoration: none; }
.auth-footer { border-top: 1px solid #ffffff10; display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 12px; color: #aab4c8; }
.auth-page :is(button, a, input):focus-visible { outline: 2px solid #75dfff; outline-offset: 4px; }
@media (max-width: 960px) {
  .auth-header, .auth-footer, .auth-layout { width: calc(100% - 64px); }
  .auth-layout { gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .auth-card { padding: 30px; }
  .auth-story h2 { font-size: 38px; }
  .auth-description { font-size: 16px; }
}
@media (max-width: 760px) {
  .auth-header, .auth-footer, .auth-layout { width: min(460px, calc(100% - 40px)); }
  .auth-header { padding-block: 28px; }
  .auth-access, .auth-story { display: none; }
  .auth-layout { display: flex; align-items: center; padding: 16px 0 36px; }
  .auth-card { width: 100%; padding: 30px 26px; border-radius: 20px; }
  .auth-card h1 { font-size: 30px; }
  .auth-footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before { transition: none !important; }
}
