@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --auth-bg: #071315;
  --auth-panel: #0e2023;
  --auth-line: rgba(195,238,226,.14);
  --auth-text: #f3fbf8;
  --auth-muted: #83a39d;
  --auth-lime: #b9f34b;
  --auth-green: #2bd18a;
  --auth-red: #ff6d78;
}
* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; background: var(--auth-bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 15% 5%, rgba(85,217,208,.13), transparent 32rem),
    radial-gradient(circle at 90% 90%, rgba(185,243,75,.08), transparent 28rem),
    var(--auth-bg);
  font-family: 'Manrope', sans-serif;
}
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(430px,.85fr); }
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px,5vw,68px);
  border-right: 1px solid var(--auth-line);
  isolation: isolate;
}
.auth-visual::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(185,243,75,.09) 1px, transparent 1px),linear-gradient(90deg,rgba(185,243,75,.07) 1px,transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 45% 48%,#000,transparent 74%);
  opacity: .28;
}
.auth-visual::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: 18%; top: 18%; border-radius: 50%; background: rgba(85,217,208,.08); filter: blur(65px); }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--auth-text); text-decoration: none; }
.auth-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px 5px; color: #07100d; background: var(--auth-lime); font: 800 18px 'IBM Plex Mono'; }
.auth-brand-mark::before { content: '↗'; transform: rotate(-8deg); }
.auth-brand strong { font: 400 19px 'Archivo Black'; letter-spacing: -.04em; }
.auth-brand small { display: block; margin-top: 2px; color: var(--auth-muted); font: 500 8px 'IBM Plex Mono'; letter-spacing: .14em; text-transform: uppercase; }
.auth-story { max-width: 650px; padding: 60px 0; }
.auth-kicker { color: var(--auth-lime); font: 600 10px 'IBM Plex Mono'; letter-spacing: .16em; text-transform: uppercase; }
.auth-story h1 { margin: 18px 0; font: 400 clamp(45px,6vw,82px)/.98 'Archivo Black'; letter-spacing: -.065em; }
.auth-story h1 span { color: var(--auth-lime); }
.auth-story p { max-width: 560px; color: var(--auth-muted); font-size: 15px; line-height: 1.75; }
.auth-market-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.auth-market-strip span { padding: 8px 10px; border: 1px solid var(--auth-line); border-radius: 8px; color: #a8c1bc; background: rgba(255,255,255,.025); font: 600 8px 'IBM Plex Mono'; }
.auth-market-strip b { color: var(--auth-green); }
.auth-footnote { color: #52736c; font: 500 8px/1.7 'IBM Plex Mono'; letter-spacing: .07em; text-transform: uppercase; }
.auth-form-side { display: grid; place-items: center; padding: 38px clamp(20px,5vw,70px); background: rgba(5,16,18,.55); }
.auth-panel { width: min(100%, 460px); }
.auth-panel-top { margin-bottom: 27px; }
.auth-panel-top span { color: var(--auth-lime); font: 600 9px 'IBM Plex Mono'; letter-spacing: .14em; text-transform: uppercase; }
.auth-panel-top h2 { margin: 10px 0 7px; font: 400 34px/1.06 'Archivo Black'; letter-spacing: -.05em; }
.auth-panel-top p { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.65; }
.auth-alert { margin-bottom: 15px; padding: 11px 13px; border: 1px solid rgba(255,109,120,.22); border-radius: 10px; color: #ffc0c5; background: rgba(255,109,120,.07); font-size: 11px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border: 1px solid var(--auth-line); border-radius: 11px; background: rgba(255,255,255,.02); }
.auth-tabs a,
.auth-tabs span { min-height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--auth-muted); text-decoration: none; font-size: 10px; font-weight: 800; }
.auth-tabs .active { color: #07100d; background: var(--auth-lime); }
.auth-form { display: grid; gap: 14px; }
.auth-field label { display: block; margin-bottom: 7px; color: #9cb7b1; font: 600 9px 'IBM Plex Mono'; letter-spacing: .08em; text-transform: uppercase; }
.auth-control { position: relative; }
.auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  outline: 0;
  color: var(--auth-text);
  background: rgba(3,13,14,.65);
  font-size: 12px;
  font-weight: 700;
  transition: .18s ease;
}
.auth-input:focus { border-color: rgba(185,243,75,.55); box-shadow: 0 0 0 3px rgba(185,243,75,.07); }
.auth-input::placeholder { color: #4e7069; }
.auth-toggle { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 8px; color: #6f918a; background: rgba(255,255,255,.03); cursor: pointer; }
.auth-helper { display: flex; justify-content: flex-end; }
.auth-helper a { color: #98b2ac; font-size: 10px; text-decoration: none; }
.auth-helper a:hover { color: var(--auth-lime); }
.auth-submit { min-height: 52px; border: 0; border-radius: 10px; color: #07100d; background: var(--auth-lime); font-size: 11px; font-weight: 900; cursor: pointer; transition: .18s ease; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(185,243,75,.11); }
.auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-check { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: var(--auth-muted); font-size: 9px; line-height: 1.6; }
.auth-check input { margin-top: 2px; accent-color: var(--auth-lime); }
.auth-check a { color: #d6e8e3; }
.auth-security { display: flex; justify-content: center; gap: 18px; margin-top: 20px; color: #5f8179; font: 500 8px 'IBM Plex Mono'; text-transform: uppercase; letter-spacing: .08em; }
.auth-security span { display: inline-flex; align-items: center; gap: 6px; }
.auth-security i { color: var(--auth-lime); }
.auth-strength { height: 3px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.auth-strength i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--auth-red); transition: .2s; }
.phone-wrap { position: relative; }
.phone-prefix { position: absolute; z-index: 2; left: 13px; top: 50%; transform: translateY(-50%); color: #9bb5af; font: 600 10px 'IBM Plex Mono'; pointer-events: none; }
.phone-wrap .auth-input { padding-left: 53px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; padding: 25px 20px 35px; border-right: 0; border-bottom: 1px solid var(--auth-line); }
  .auth-story { padding: 55px 0 10px; }
  .auth-story h1 { font-size: clamp(38px,12vw,62px); }
  .auth-story p { font-size: 13px; }
  .auth-footnote { display: none; }
  .auth-form-side { padding: 38px 18px 55px; }
}

@media (max-width: 520px) {
  .auth-visual { min-height: 285px; }
  .auth-story h1 { font-size: 38px; }
  .auth-market-strip span:nth-child(n+4) { display: none; }
  .auth-panel-top h2 { font-size: 29px; }
  .auth-security { gap: 9px; font-size: 7px; }
}

html,
body { max-width: 100%; overflow-x: hidden; }
.auth-page > *,
.auth-panel,
.auth-form,
.auth-control { min-width: 0; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .auth-story h1 { max-width: 100%; overflow-wrap: anywhere; }
  .auth-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-security { flex-wrap: wrap; }
}
