.auth-page { background: #0c0e13; }
.auth-page .sidebar, .auth-page .mobile-header, .auth-page .mobile-nav { display: none; }
.auth-page .main-column { margin-left: 0; }
.auth-page .app-content { max-width: none; min-height: 100dvh; padding: 0; }
.auth-page button:focus-visible, .auth-page a:focus-visible, .auth-page input:focus-visible { outline-color: #a4afff; }
.auth-page-shell { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 104px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 850; letter-spacing: .12em; }
.auth-brand img { display: block; object-fit: contain; }
.auth-home-link { display: inline-flex; align-items: center; gap: 9px; color: #b1b5c2; font-size: 13px; }
.auth-home-link svg, .auth-back svg { width: 19px; height: 19px; }
.auth-home-link:hover { color: #fff; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); max-width: 1160px; min-height: calc(100dvh - 164px); margin: 0 auto; padding: 10px 0 24px; }
.auth-story { position: relative; display: flex; flex-direction: column; align-self: stretch; min-height: 650px; padding: 31px 36px 30px; overflow: hidden; border: 1px solid #27324b; border-radius: 25px; background: #111a2d; }
.auth-story::before { position: absolute; inset: 0; z-index: 0; pointer-events: none; content: ""; background: radial-gradient(ellipse at 52% 35%, #27335a80, transparent 64%); }
.auth-story > * { position: relative; }
.auth-story-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9faecc; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.auth-story-dot { width: 7px; height: 7px; border-radius: 50%; background: #78e5e3; box-shadow: 0 0 18px #78e5e340; }
.auth-art { display: grid; flex: 1; place-items: center; min-height: 280px; margin: 2px -20px 6px; }
.auth-art img { position: relative; z-index: 1; display: block; width: min(100%, 360px); height: auto; filter: drop-shadow(0 20px 35px #00000025); }
.auth-orbit { position: absolute; width: 266px; height: 266px; border: 1px solid #6c7cba20; border-radius: 50%; }
.auth-orbit::after { position: absolute; inset: -36px; border: 1px solid #6c7cba12; border-radius: inherit; content: ""; }
.auth-story-label { margin: 0 0 14px; color: #a9b8e0; font-size: 10px; font-weight: 650; letter-spacing: .15em; }
.auth-story h2 { margin: 0; color: #f3f5ff; font-size: clamp(38px, 4vw, 54px); font-weight: 720; line-height: 1.08; letter-spacing: -.045em; }
.auth-story h2 span { color: #9aa9ff; }
.auth-story-copy > p:last-child { margin: 18px 0 0; color: #a7b1c9; font-size: 14px; line-height: 1.8; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #a5b3df1c; color: #c5cde0; font-size: 11px; }
.auth-benefits span { display: inline-flex; align-items: center; gap: 8px; }
.auth-benefits svg { width: 17px; height: 17px; fill: none; stroke: #a0b0e1; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.auth-form-panel { width: 100%; max-width: 430px; margin: 0 auto; padding: 22px 0; }
.auth-segments { display: flex; gap: 4px; padding: 5px; border: 1px solid #272c38; border-radius: 12px; background: #151820; }
.auth-segments button { flex: 1; min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; color: #9299aa; background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }
.auth-segments button[aria-pressed="true"] { border-color: #3b4259; color: #f4f5ff; background: #2b3144; box-shadow: 0 2px 6px #00000015; }
.auth-segments button:hover { color: #fff; }
.auth-kicker { margin: 34px 0 11px; color: #929fef; font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .13em; }
.auth-form-panel h1 { margin: 0; font-size: clamp(28px, 2.8vw, 36px); font-weight: 720; line-height: 1.18; letter-spacing: -.045em; }
.auth-form-panel h1:focus { outline: none; }
.auth-intro { margin: 13px 0 28px; color: #979faf; font-size: 14px; line-height: 1.75; }
.auth-form { gap: 19px; }
.auth-form .form-field { gap: 9px; }
.auth-form .form-field label { color: #d6dbe7; font-size: 12px; font-weight: 550; }
.auth-form .form-field input { min-height: 51px; padding: 13px 15px; border: 1px solid #303645; border-radius: 10px; color: #f3f5ff; background: #151922; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.auth-form .form-field input:hover { border-color: #49516a; }
.auth-form .form-field input:focus { border-color: #8d9aff; outline: 0; box-shadow: 0 0 0 3px #8d9aff16; }
.auth-form .form-field input::placeholder { color: #646d82; opacity: 1; }
.auth-form .form-field input:-webkit-autofill { -webkit-text-fill-color: #f3f5ff; box-shadow: 0 0 0 1000px #151922 inset; caret-color: #f3f5ff; }
.auth-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-username-help { display: grid; gap: 4px; margin-top: -11px; }
.auth-form .form-hint { color: #8d96aa; font-size: 10px; line-height: 1.6; }
.auth-username-help #usernameState:empty { display: none; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-inline-link { padding: 0; border: 0; color: #a6b0ff; background: transparent; font-size: 11px; cursor: pointer; }
.auth-inline-link:hover { color: #d0d6ff; }
.auth-password { position: relative; }
.auth-password input { padding-right: 52px !important; }
.auth-password-toggle { position: absolute; top: 50%; right: 3px; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; transform: translateY(-50%); border: 0; border-radius: 7px; color: #8a95ad; background: transparent; cursor: pointer; }
.auth-password-toggle:hover { color: #d3dbf4; background: #ffffff06; }
.auth-password-toggle svg { width: 19px; height: 19px; }
.auth-strength { display: grid; gap: 7px; margin-top: -9px; }
.auth-strength .password-meter { height: 3px; background: #262d3b; }
.auth-strength .password-meter span { background: #94a2ff; }
.auth-submit { display: flex; justify-content: center; align-items: center; gap: 13px; width: 100%; min-height: 52px; margin-top: 3px; padding: 13px 18px; border: 1px solid #a3adff40; border-radius: 10px; color: #10162e; background: #95a2ff; font-size: 14px; font-weight: 750; cursor: pointer; transition: background .15s, transform .15s; }
.auth-submit span { font-size: 20px; line-height: 1; }
.auth-submit:hover { background: #afbbff; }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-form .form-error, .auth-form .form-success { padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.auth-form .form-error { border-color: #ff8a8a35; color: #ffb1ae; background: #ee6b6b0b; }
.auth-form .form-success { border-color: #80d6c835; color: #9ce5d8; background: #80d6c809; }
.auth-switch { margin: 24px 0 0; color: #8f98ad; text-align: center; font-size: 12px; line-height: 1.6; }
.auth-switch button { padding: 0 0 0 4px; border: 0; color: #b5bfff; background: transparent; font-size: inherit; font-weight: 600; cursor: pointer; }
.auth-switch button:hover { color: #e4e8ff; }
.auth-legacy-link { display: block; margin: 24px auto 0; padding: 0; border: 0; color: #717c93; background: transparent; font-size: 11px; cursor: pointer; }
.auth-legacy-link:hover { color: #adb8d2; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 0; border: 0; color: #a4afcc; background: transparent; font-size: 12px; cursor: pointer; }
.auth-help-note { margin-bottom: 25px; padding: 18px; border: 1px solid #30384c; border-radius: 12px; color: #acb6cf; background: #151c2b; font-size: 13px; line-height: 1.8; }
.auth-footnote { margin: 22px 0 0; color: #7e899f; font-size: 12px; line-height: 1.7; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1160px; margin: 0 auto; padding: 0 0 27px; color: #596478; font-size: 10px; }
@media (min-width: 1500px) { .auth-layout { min-height: min(810px, calc(100dvh - 164px)); } }
@media (max-width: 1100px) {
  .auth-page-shell { padding: 0 36px; }
  .auth-layout { gap: 38px; }
  .auth-story { padding: 28px; min-height: 620px; }
  .auth-story h2 { font-size: 42px; }
  .auth-benefits { gap: 16px; }
}
@media (max-width: 880px) {
  .auth-page-shell { max-width: 580px; padding: 0 30px; }
  .auth-header { height: 88px; }
  .auth-brand { font-size: 21px; }
  .auth-brand img { width: 38px; height: 38px; }
  .auth-home-link { font-size: 12px; }
  .auth-layout { display: flex; align-items: center; min-height: calc(100dvh - 150px); padding: 0; }
  .auth-story { display: none; }
  .auth-form-panel { max-width: 460px; padding: 28px 0 48px; }
  .auth-form-panel h1 { font-size: 34px; }
  .auth-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .auth-page-shell { padding: 0 21px; }
  .auth-header { height: 78px; gap: 12px; }
  .auth-brand { gap: 5px; font-size: 19px; }
  .auth-home-link { gap: 4px; font-size: 11px; }
  .auth-home-link svg { width: 16px; }
  .auth-form-panel h1 { font-size: 30px; }
  .auth-kicker { margin-top: 27px; font-size: 9px; }
  .auth-intro { margin-bottom: 25px; font-size: 13px; }
  .auth-field-pair { grid-template-columns: 1fr; gap: 18px; }
  .auth-footer { font-size: 9px; gap: 12px; }
}
