/* Tradestone portal appearance, locked to the site's dark palette. */
html { color-scheme: only dark; background: #030508; }
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
body.auth-page { --color-primary: #05abce; --color-primary-strong: #048fb0; --color-primary-soft: rgba(5,171,206,.14); --color-text: #f8fafc; --color-text-secondary: #cbd5e1; --color-text-tertiary: #a3a8b3; --color-glass: #05090c; --gradient-cta: linear-gradient(135deg,#05abce,#048fb0); display: block; padding: 0; margin: 0; min-height: 100vh; background: #030508; color: #f8fafc; font-family: Inter,system-ui,-apple-system,sans-serif; font-size: 16px; color-scheme: only dark; }
body.auth-page::before { background: radial-gradient(900px 440px at 50% 35%,rgba(5,171,206,.18),transparent 60%),radial-gradient(900px 520px at 86% 12%,rgba(5,171,206,.10),transparent 64%),linear-gradient(180deg,#05090c,#020508); animation: none; }
.gh-auth-background { position: fixed; inset: 62px 0 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg,rgba(5,171,206,.03) 0 1px,transparent 1px 74px),repeating-linear-gradient(90deg,rgba(5,171,206,.03) 0 1px,transparent 1px 82px); }
.gh-auth-background svg { width: 100%; height: 100%; color: rgba(5,171,206,.13); }
body.auth-page .auth-shell { width: min(600px,calc(100% - 28px)); max-width: 600px; margin: 146px auto 76px; padding: 0; }
body.auth-page .auth-card { width: 100%; display: block; padding: 0; overflow: visible; border: 1px solid rgba(5,171,206,.78); border-radius: 28px; background: radial-gradient(560px 240px at 50% 0%,rgba(5,171,206,.12),transparent 70%),rgba(2,10,14,.82); box-shadow: 0 28px 90px rgba(0,0,0,.48),0 0 44px rgba(5,171,206,.10); backdrop-filter: blur(12px); }
body.auth-page .auth-card__header { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 32px; border-radius: 28px 28px 0 0; border-bottom: 1px solid rgba(5,171,206,.42); background: radial-gradient(520px 210px at 50% 100%,rgba(5,171,206,.13),transparent 64%),rgba(5,17,23,.55); }
body.auth-page .auth-badge { width: min(100%,350px); min-height: 32px; justify-content: center; margin: 0 0 4px; padding: 6px 12px; font-size: 12px; font-weight: 750; letter-spacing: 2px; background: rgba(5,171,206,.15); color: #05abce; border: 1px solid rgba(5,171,206,.76); box-shadow: inset 0 0 22px rgba(5,171,206,.08); }
body.auth-page .auth-card__title { margin: 0; color: #f8fafc; font-size: 32px; line-height: 1.2; font-weight: 700; text-align: center; }
body.auth-page .auth-card__brand { display: flex; gap: 10px; margin: 0; color: #05abce; font-size: 25px; letter-spacing: 0; text-transform: none; text-decoration: none; }
body.auth-page .auth-card__brand img { display: block; width: 220px; max-width: 100%; height: auto; object-fit: contain; }
body.auth-page .auth-card__subtitle { max-width: 100%; margin: 0; font-size: 16px; line-height: 1.5; color: #cbd5e1; }
body.auth-page .auth-form { display: grid; gap: 12px; padding: 16px 28px 0; margin: 0; }
body.auth-page .auth-form .auth-field { gap: 4px; min-width: 0; }
body.auth-page .auth-form .auth-field[hidden] { display: none; }
body.auth-page .auth-form .auth-field label { color: #f8fafc !important; font-size: 14px !important; font-weight: 650; margin: 0; }
body.auth-page .auth-input { width: 100%; height: 46px; min-height: 46px; border: 1px solid rgba(148,163,184,.32); border-radius: 14px; background: rgba(5,10,15,.52); color: #f8fafc; padding: 9px 44px 9px 48px; box-shadow: none; font-size: 15px; }
body.auth-page .auth-input::placeholder { color: rgba(203,213,225,.58); opacity: 1; }
body.auth-page .auth-input:focus { background: rgba(5,10,15,.52); color: #f8fafc; border-color: rgba(5,171,206,.86); box-shadow: 0 0 0 3px rgba(5,171,206,.14); }
body.auth-page .auth-input-group .auth-icon { left: 18px; font-size: 20px; color: #05abce; }
body.auth-page .auth-input-toggle { right: 14px; color: #05abce; }
body.auth-page .auth-meta { justify-content: flex-end; margin-top: -6px; font-size: 14px; }
body.auth-page .auth-meta a, body.auth-page .auth-alt a { color: #05abce; }
body.auth-page .auth-submit { width: 100%; min-height: 52px; margin: 0; padding: 12px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#05abce,#048fb0); color: #fff; font-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.26),0 14px 32px rgba(5,171,206,.24); }
body.auth-page .auth-submit:hover { background: #048fb0; transform: none; }
body.auth-page .auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 36px 18px; color: #cbd5e1; font-size: 12px; }
body.auth-page .auth-divider::before,body.auth-page .auth-divider::after { content: ''; height: 1px; flex: 1; background: rgba(148,163,184,.36); }
body.auth-page .auth-divider span { padding: 5px 10px; border-radius: 20px; background: rgba(18,31,42,.92); }
body.auth-page .auth-alt { margin: 0; padding: 0 24px 32px; color: #cbd5e1; font-size: 14px; }
body.auth-page .auth-alt__cta { display: inline; padding: 0; margin: 0 0 0 6px; background: none; border: 0; box-shadow: none; text-transform: none; letter-spacing: 0; font-size: 14px; }
body.auth-page .auth-form__row { grid-template-columns: 1fr; gap: 12px; }
body.auth-page .auth-action--inline .auth-submit { min-width: 0; width: 100%; padding: 12px 18px; border-radius: 12px; }
body.auth-page .auth-alert:not(.d-none) { margin: 24px 36px 0; padding: 14px; font-size: 14px; background: #0e1217; }
body.auth-page .auth-input-group--tel .iti { width: 100%; }
body.auth-page .auth-input--tel { padding-left: 100px !important; }
body.auth-page .iti__country-list { background: #05090c; color: #cbd5e1; border-color: rgba(148,163,184,.32); max-width: min(440px,calc(100vw - 68px)); }
body.auth-page .iti__country.iti__highlight { background: rgba(5,171,206,.14); }
body.auth-page .loading-overlay { background: rgba(3,5,8,.8); }
@media(max-width: 640px) {
 body.auth-page .auth-shell { margin-top: 42px; margin-bottom: 40px; }
 body.auth-page .auth-card__header { padding: 8px 20px; }
 body.auth-page .auth-card__title { font-size: 28px; }
 body.auth-page .auth-card__brand { font-size: 22px; }
 body.auth-page .auth-card__subtitle { font-size: 14px; }
 body.auth-page .auth-form { padding: 14px 20px 0; }
 body.auth-page .auth-divider { margin-left: 20px; margin-right: 20px; }
 body.auth-page .auth-alert:not(.d-none) { margin-left: 20px; margin-right: 20px; }
}
body.auth-page .auth-input-group .auth-icon { z-index: 2; pointer-events: none; }
body.auth-page .auth-input-group--tel .iti { overflow: visible; }
body.auth-page .auth-input-group--tel .iti__country-list { z-index: 20; }
body.auth-page--signup .iti--container {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.65);
}
body.auth-page--signup .iti__selected-flag { cursor: pointer; }
body.auth-page--signup .auth-input-group--tel .iti__flag-container {
  padding: 0;
  width: 82px;
  z-index: 3;
  background: #151a22;
  border-right: 1px solid rgba(5,171,206,.6);
}
body.auth-page--signup .auth-input-group--tel .iti__selected-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
}
body.auth-page--signup .iti__selected-flag .iti__flag {
  flex-shrink: 0;
  transform: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
body.auth-page--signup .iti__arrow { margin-left: 0; border-top-color: #05D4F2; }
body.auth-page--signup .iti__arrow--up { border-bottom-color: #05D4F2; }
body.auth-page--signup .iti__selected-flag:focus-visible {
  outline: 2px solid #05D4F2;
  outline-offset: -3px;
  border-radius: 14px 0 0 14px;
}
body.auth-page--signup .iti__country-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #05abce;
  border-radius: 8px;
}
body.auth-page--signup .iti--container .iti__country-list {
  position: relative;
  inset: auto;
  width: min(420px, calc(100vw - 40px));
  max-width: none;
  max-height: min(520px, calc(100dvh - 80px));
  margin: 0;
  white-space: normal;
  background: #08131b;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
body.auth-page--signup .iti__flag {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55);
}
body.auth-page--signup .iti__country { min-height: 44px; padding: 12px; cursor: pointer; }
body.auth-page--signup .iti__dial-code { color: #cbd5e1; }

body.auth-page--signup .auth-shell { margin-top: 10px; }
body.auth-page--signup .auth-divider { margin-top: 3px; margin-bottom: 2px; }
body.auth-page--signup .auth-divider span { padding: 0 10px; }
body.auth-page--signup .auth-alt { margin: 0; padding-top: 0; padding-bottom: 4px; }
@media (max-width: 640px) {
 body.auth-page--signup .auth-shell { margin-top: 5px; }
}
