:root {
  color-scheme: dark;
  --bg: var(--c_auth_101116, #101116);
  --surface: var(--c_auth_191b22, #191b22);
  --raised: var(--c_auth_20232c, #20232c);
  --line: var(--c_auth_2b2e38, #2b2e38);
  --text: var(--c_auth_f5f6f8, #f5f6f8);
  --muted: var(--c_auth_9a9fad, #9a9fad);
  --mint: var(--c_auth_65f3b2, #65f3b2);
  --danger: var(--c_auth_ff8f97, #ff8f97);
  --success: var(--c_auth_83e5ae, #83e5ae);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--bg); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(390px, 48%) minmax(480px, 52%);
  min-height: 100dvh;
}
.auth-scene {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(26px, 3vw, 46px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.auth-brand, .auth-panel__brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}
.auth-brand img, .auth-panel__brand img {
  display: block;
  width: clamp(180px, 15vw, 216px);
  height: auto;
  object-fit: contain;
}
.auth-panel__brand { display: none; }
.auth-scene__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.auth-scene__topline strong {
  color: var(--mint);
  font-weight: 750;
}
.auth-scene__art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, .8vw, 12px);
  margin-top: clamp(28px, 5vh, 64px);
}
.auth-art-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 2.1;
  border: 1px solid var(--c_auth_343741, #343741);
  border-radius: 12px;
  background: var(--raised);
}
.auth-art-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-art-card figcaption {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgb(var(--c_auth_ffffff-rgb, 255 255 255) / 0.19607843137254902);
  border-radius: 6px;
  background: rgb(var(--c_auth_101116-rgb, 16 17 22) / 0.8666666666666667);
  color: var(--c_auth_ffffff, #fff);
  font-size: clamp(7px, .75vw, 10px);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-scene__copy {
  max-width: 690px;
  margin-top: auto;
  padding-top: clamp(32px, 5vh, 62px);
}
.auth-scene__copy > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.auth-scene__copy > p i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.auth-scene__copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(40px, 4.2vw, 68px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.auth-scene__copy h1 em { color: var(--mint); font-style: normal; }
.auth-scene__copy > span {
  display: block;
  max-width: 560px;
  margin-top: 18px;
  color: var(--c_auth_b8bbc5, #b8bbc5);
  font-size: 14px;
  line-height: 1.65;
}
.auth-scene__metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 35px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.auth-scene__metric small {
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.auth-scene__metric strong { color: var(--c_auth_c8cbd3, #c8cbd3); font-size: 11px; font-weight: 600; }

.auth-panel {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 100dvh;
  padding: 80px clamp(32px, 5.8vw, 92px) 52px;
  background: var(--bg);
}
.auth-back {
  position: absolute;
  top: 37px;
  right: clamp(32px, 5.8vw, 92px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.auth-back:hover { color: var(--text); }
.auth-back span { color: var(--mint); font-size: 20px; line-height: 1; }
.auth-panel__inner {
  width: min(100%, 480px);
  margin: 0 auto;
}
.auth-panel__inner--register { width: min(100%, 625px); }
.auth-kicker {
  margin: 0 0 11px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.auth-panel h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 47px);
  font-weight: 730;
  line-height: 1.1;
  letter-spacing: -.05em;
}
.auth-lead {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.auth-form { display: grid; gap: 17px; }
.auth-form--register { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.auth-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.auth-field--wide { grid-column: 1 / -1; }
.auth-field label { color: var(--c_auth_d7d9df, #d7d9df); font-size: 12px; font-weight: 700; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-label-row span { color: var(--c_auth_818692, #818692); font-size: 11px; }
.auth-input {
  display: flex;
  align-items: center;
  min-height: 53px;
  border: 1px solid var(--c_auth_383b46, #383b46);
  border-radius: 12px;
  background: var(--raised);
  transition: border-color .15s, background .15s;
}
.auth-input:hover { border-color: var(--c_auth_50545e, #50545e); }
.auth-input:focus-within { border-color: var(--mint); background: var(--c_auth_252932, #252932); }
.auth-input > svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-left: 15px;
  fill: none;
  stroke: var(--c_auth_a1a5b0, #a1a5b0);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-input input {
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.auth-input input::placeholder { color: var(--c_auth_8c909c, #8c909c); }
.auth-input button {
  display: grid;
  flex: none;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-right: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c_auth_b2b5bf, #b2b5bf);
  cursor: pointer;
}
.auth-input button:hover { background: var(--c_auth_323640, #323640); }
.auth-input button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth-field > small { color: var(--danger); font-size: 11px; line-height: 1.35; }
.auth-field.is-invalid .auth-input { border-color: var(--danger); }
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--c_auth_b7bac4, #b7bac4);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}
.auth-check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--mint); }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 53px;
  padding: 0 19px;
  border: 1px solid var(--mint);
  border-radius: 12px;
  background: var(--mint);
  color: var(--c_auth_101b16, #101b16);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.auth-submit:hover { background: var(--c_auth_8bffca, #8bffca); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.auth-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth-submit.is-loading svg { animation: auth-spin .8s linear infinite; }
.auth-message {
  padding: 12px 14px;
  border: 1px solid var(--c_auth_734249, #734249);
  border-radius: 10px;
  background: var(--c_auth_332126, #332126);
  color: var(--c_auth_ffbec3, #ffbec3);
  font-size: 12px;
  line-height: 1.5;
}
.auth-message.is-success { border-color: var(--c_auth_426c53, #426c53); background: var(--c_auth_1c2b23, #1c2b23); color: var(--c_auth_a9efc7, #a9efc7); }
.auth-switch { margin: 25px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a, .auth-inline-link { color: var(--mint); font-weight: 750; text-underline-offset: 3px; }
.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 31px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--c_auth_848996, #848996);
  font-size: 11px;
  text-align: center;
}
.auth-security svg { width: 17px; height: 17px; fill: none; stroke: var(--mint); stroke-width: 1.7; }
.password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.password-meter i { height: 3px; border-radius: 3px; background: var(--c_auth_3a3d47, #3a3d47); }
.password-meter span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.password-meter[data-strength="1"] i:nth-child(-n+1) { background: var(--c_auth_ff8f97, #ff8f97); }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: var(--c_auth_e6bd76, #e6bd76); }
.password-meter[data-strength="3"] i:nth-child(-n+3),
.password-meter[data-strength="4"] i { background: var(--mint); }
.auth-inline-link { padding: 0; border: 0; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.auth-terms-backdrop {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(var(--c_auth_06070b-rgb, 6 7 11) / 0.8);
}
.auth-terms-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(680px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid var(--c_auth_454955, #454955);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(var(--c_auth_000000-rgb, 0 0 0) / 0.5333333333333333);
}
.auth-terms-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.auth-terms-dialog header small { color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.auth-terms-dialog header h2 { margin: 5px 0 0; font-size: clamp(23px, 4vw, 30px); }
.auth-terms-dialog header button {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--raised);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.auth-terms-dialog [data-terms-copy] {
  overflow: auto;
  padding: 22px 24px;
  color: var(--c_auth_c5c7ce, #c5c7ce);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.auth-terms-dialog footer { padding: 17px 24px 22px; border-top: 1px solid var(--line); }
.auth-terms-dialog footer .auth-submit { min-height: 47px; }

@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: minmax(360px, 45%) minmax(450px, 55%); }
  .auth-scene__art { margin-top: 34px; }
  .auth-scene__copy h1 { font-size: clamp(38px, 4.4vw, 55px); }
}
@media (max-width: 850px) {
  .auth-shell { display: flex; flex-direction: column; }
  .auth-panel { order: 0; min-height: 100dvh; padding: 100px 32px 52px; }
  .auth-panel__inner { width: min(100%, 600px); }
  .auth-panel__brand { display: inline-flex; position: absolute; top: 25px; left: 32px; }
  .auth-panel__brand img { width: 185px; }
  .auth-back { top: 43px; right: 32px; }
  .auth-scene { order: 1; min-height: auto; padding: 30px 32px 36px; border-top: 1px solid var(--line); border-right: 0; }
  .auth-brand { display: none; }
  .auth-scene__topline { margin-top: 0; padding-top: 0; border: 0; }
  .auth-scene__art { margin-top: 28px; }
  .auth-scene__copy { margin-top: 0; padding-top: 30px; }
  .auth-scene__copy h1 { font-size: clamp(34px, 6vw, 52px); }
  .auth-scene__metric { margin-top: 25px; }
}
@media (max-width: 620px) {
  .auth-panel { min-height: 100dvh; padding: 100px 20px 34px; align-items: start; }
  .auth-panel__brand { top: 22px; left: 20px; }
  .auth-panel__brand img { width: 176px; }
  .auth-back { top: 90px; right: 20px; }
  .auth-panel__inner { margin-top: 37px; }
  .auth-panel h2 { font-size: 35px; }
  .auth-lead { margin-bottom: 27px; font-size: 13px; }
  .auth-form--register { grid-template-columns: 1fr; }
  .auth-field--wide { grid-column: auto; }
  .auth-scene { padding: 27px 20px 32px; }
  .auth-scene__art { gap: 7px; }
  .auth-art-card { aspect-ratio: 1.08; border-radius: 8px; }
  .auth-art-card figcaption { display: none; }
  .auth-scene__copy h1 { font-size: clamp(32px, 8vw, 44px); }
  .auth-scene__copy > span { font-size: 12px; }
  .auth-scene__metric { align-items: start; flex-direction: column; gap: 4px; }
}
@media (max-height: 960px) and (min-width: 851px) {
  .auth-scene__art { margin-top: 24px; }
  .auth-scene__copy { padding-top: 26px; }
  .auth-scene__copy h1 { font-size: clamp(37px, 4vw, 55px); }
  .auth-scene__metric { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
