/* Shared auth presentation: full realm, features, and an independent usable form. */
:root {
  color-scheme: dark;
  --bg: #080615;
  --text: #f7f2ff;
  --muted: #b9b0d1;
  --purple: #ae78ff;
  --line: #72549e;
  --mono: "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.45; isolation: isolate; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: #d4b0ff; text-underline-offset: 4px; }
a:hover { color: white; }
:focus-visible { outline: 2px solid #e5cbff; outline-offset: 4px; }
button svg, .input-icon svg { width: 22px; height: 22px; display: block; }
.background { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: #120b26 url("../landing/erida-realm.png") center center / cover no-repeat; }
.background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#05031660,transparent 37%,transparent 64%,#06041470),linear-gradient(180deg,#06031450,transparent 38%,#06031430 65%,#060314da); }
.realm-light { position: absolute; width: 55%; height: 55%; left: 25%; top: 30%; opacity: .25; background: radial-gradient(ellipse,#ba8cff60,transparent 65%); animation: realm-breathe 9s ease-in-out infinite alternate; }
.particles { position: absolute; inset: 0; z-index: 1; }
.particles i { position: absolute; left: var(--x); bottom: -15px; width: 3px; height: 3px; border-radius: 50%; background: #dbc0ff; box-shadow: 0 0 10px #b279ff; animation: motes var(--duration) linear var(--delay) infinite; }
.topbar { position: relative; z-index: 2; max-width: 1880px; margin: auto; padding: 20px clamp(24px,3vw,56px) 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-symbol { width: 44px; height: 44px; filter: drop-shadow(0 0 9px #a463ff70); }
.brand > span { font-size: 21px; letter-spacing: .2em; font-weight: 600; }
.brand small { display: block; font-size: 8px; letter-spacing: .14em; color: #c7b9e3; margin-top: 3px; font-weight: 400; }
.header-motto { margin: 0; font-size: 10px; letter-spacing: .22em; line-height: 1.8; text-transform: uppercase; color: #d6c3f9; }
.header-motto strong { font-weight: 400; }
.header-motto::after { content: ""; display: block; height: 1px; margin-top: 9px; background: linear-gradient(90deg,#b681ff,transparent); }
.page { max-width: 1880px; margin: 0 auto; min-height: calc(100svh - 126px); padding: 34px clamp(24px,3vw,56px) 28px; display: grid; grid-template-columns: minmax(375px,1.1fr) minmax(240px,.94fr) minmax(360px,.94fr); gap: clamp(18px,2.4vw,46px); align-items: center; }
.page > * { min-width: 0; }
.neon-panel { position: relative; border: 1px solid #a077e4a6; border-radius: 20px 5px 20px 5px; background: linear-gradient(125deg,#0d0b24f2,#090718ed 70%,#170d2bef); box-shadow: 0 20px 70px #0008,0 0 27px #874bdf35,inset 0 0 24px #9263e70b; }
.neon-panel::before { content: ""; pointer-events: none; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(110deg,#d8b1ff,#ad78ff00 19%,transparent 77%,#c38eff); padding: 1px; mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude; }
.neon-panel::after { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg,#dfb5ff,transparent) top left / 85px 2px no-repeat,linear-gradient(270deg,#e7bbff,transparent) bottom right / 85px 2px no-repeat; filter: drop-shadow(0 0 5px #c773ff) drop-shadow(0 0 9px #8a3dff); }
.terminal { grid-column: 1; grid-row: 1; padding: 20px 14px 12px; align-self: center; }
.terminal-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 5px 16px; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #bd90ff; }
.terminal-heading h2 { margin: 7px 0 0; font-size: clamp(17px,1.25vw,21px); font-weight: 500; letter-spacing: -.02em; }
.terminal-heading em { font-style: normal; color: #d1adff; }
.motion-toggle { flex: 0 0 38px; min-height: 44px; display: grid; place-items: center; background: #c6a0ff0c; border: 1px solid #b19bd637; color: #d7c3f0; border-radius: 8px; }
.motion-toggle:hover { background: #b186ff22; }
.motion-toggle svg { width: 17px; height: 17px; }
.feature-wrapper { list-style: none; margin: 0; padding: 2px 5px 3px 2px; display: grid; gap: 9px; max-height: clamp(300px,calc(100svh - 408px),600px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #7752a5 #141023; overscroll-behavior: contain; }
.feature { position: relative; isolation: isolate; display: grid; grid-template-columns: 33px minmax(0,1fr); column-gap: 11px; align-items: center; padding: 13px 102px 13px 12px; min-height: 116px; border: 1px solid #7858a56b; border-left-color: #b887fff2; border-radius: 11px 4px 11px 4px; overflow: hidden; background: linear-gradient(110deg,#15142f,#101025 65%,#2b194750); transition: border-color .25s,background .25s; }
.feature::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(100deg,transparent 15%,#9f6eff19 50%,transparent 80%); transform: translateX(-100%); animation: feature-shimmer 14s ease-in-out calc(var(--order)*1.4s) infinite; }
.feature:hover { border-color: #c996ff; background-color: #422968; }
.feature-mark { position: relative; z-index: 1; align-self: center; color: #c29aff; display: grid; justify-items: center; gap: 9px; }
.feature-mark svg { width: 29px; height: 29px; filter: drop-shadow(0 0 6px #a975ff65); }
.feature-mark span { font: 10px var(--mono); color: #a081c4; }
.feature-content { position: relative; z-index: 2; }
.feature-code { display: block; color: #b397e0; font: 8px var(--mono); letter-spacing: .1em; margin-bottom: 5px; }
.feature h3 { font-size: clamp(15px,1.05vw,17px); font-weight: 550; line-height: 1.25; margin: 0 0 6px; text-wrap: balance; }
.feature p { margin: 0; font-size: clamp(12px,.85vw,14px); line-height: 1.5; color: #beb5d5; }
.hero-frame { position: absolute; z-index: 0; width: 112px; height: 132px; right: -3px; bottom: 0; transform: scale(.9); transform-origin: right bottom; pointer-events: none; }
.hero-aura { position: absolute; inset: 5% -15%; border-radius: 50%; background: radial-gradient(ellipse,#a866ff50,transparent 65%); }
.feature-art { position: absolute; height: auto; max-width: none; filter: drop-shadow(0 3px 9px #0008); animation: hero-float 7s ease-in-out calc(var(--order)*-.9s) infinite; transform-origin: center 80%; }
.more-features { width: 100%; min-height: 36px; border: 0; background: transparent; color: #b8a2d5; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; letter-spacing: .015em; padding: 4px; }
.more-features svg { width: 15px; height: 15px; }
.more-features:hover { color: #f4e3ff; }
.more-features.at-end svg { transform: rotate(180deg); }
.trial { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #c495614c; border-radius: 9px; background: linear-gradient(105deg,#68452832,#291c3024); }
.trial > svg { width: 26px; height: 26px; color: #f4c583; flex-shrink: 0; }
.trial strong { display: block; font-size: 13px; color: #f4d8af; font-weight: 500; }
.trial span { display: block; font-size: 11px; margin-top: 3px; color: #c2b7c6; }
.trial b { margin-left: auto; color: #f3d1a6; font-weight: 400; font-size: 29px; line-height: 1; }
.trial small { font-size: 7px; letter-spacing: .2em; display: block; text-align: center; margin-top: 4px; }
.plan-note { text-align: center; color: #a699b9; font-size: 10px; margin: 10px 0 0; }
.brand-stage { grid-column: 2; grid-row: 1; align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 0 0 5px; pointer-events: none; }
.stage-brand { width: 100%; max-width: 500px; padding-top: 0; filter: drop-shadow(0 2px 14px #170a40); }
.stage-symbol { width: clamp(52px,4.9vw,82px); height: auto; filter: drop-shadow(0 0 14px #b277ffa0); margin-bottom: 10px; }
.stage-brand h1 { margin: 0; line-height: 1; filter: drop-shadow(0 0 4px #bf76ff) drop-shadow(0 0 22px #b663ff90); }
.stage-brand h1 img { width: 100%; height: auto; }
.stage-brand p { margin: 13px 0 0; color: #ece1ff; font-size: clamp(10px,.9vw,14px); letter-spacing: .1em; text-shadow: 0 2px 5px #18062e; }
.stage-brand p strong { font-weight: 500; display: block; letter-spacing: .18em; margin-top: 4px; }
.stage-caption { width: 112%; color: #f1e2ff; text-shadow: 0 2px 8px #000; }
.stage-caption span { display: block; font-size: 9px; letter-spacing: .3em; }
.stage-caption p { margin: 7px 0 9px; font-size: clamp(12px,1vw,16px); letter-spacing: .02em; }
.stage-caption i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 24px; color: #dba5ff; gap: 14px; text-shadow: 0 0 12px #a742ff; }
.stage-caption i::before,.stage-caption i::after { content: ""; height: 1px; width: 35%; background: linear-gradient(90deg,transparent,#ac6ffc); }
.stage-caption i::after { transform: rotate(180deg); }
.auth { grid-column: 3; grid-row: 1; padding: clamp(23px,2.2vw,38px); width: 100%; justify-self: end; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-symbol { width: 48px; height: 48px; margin: 0 auto 10px; filter: drop-shadow(0 0 13px #9e5dfd70); }
.auth-logo-symbol img { display: block; width: 100%; height: 100%; }
.auth-logo h2 { margin: 0 auto; max-width: 195px; line-height: 1; }
.auth-logo h2 img { width: 100%; height: auto; filter: drop-shadow(0 0 8px #9b65ff50); }
.auth-subtitle { font-size: 12px; color: #d0c4e5; margin: 12px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #70529d9c; border-radius: 8px; background: #070615b0; margin-bottom: 25px; }
.tab { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #c7bcda; font-size: 11px; font-weight: 550; letter-spacing: .045em; border-radius: 5px; padding: 10px 5px; }
.tab.active { background: linear-gradient(135deg,#9250f9,#621fed); color: white; box-shadow: 0 0 17px #9745ff38,inset 0 1px 0 #d8b4ff60; }
.tab:hover:not(.active) { background: #9870e318; }
.form-group { margin-bottom: 17px; }
.form-label { display: block; font-size: 11px; color: #d1c4e4; margin: 0 0 7px 2px; }
.input-wrapper { position: relative; min-width: 0; }
.input-wrapper input { width: 100%; height: 51px; border: 1px solid #6c548989; border-radius: 8px; background: #060919b8; color: #fff; padding: 0 43px; font-size: 14px; outline: none; transition: border-color .2s,box-shadow .2s; }
.input-wrapper input::placeholder { color: #8f87aa; }
.input-wrapper input:focus { border-color: #b885ff; box-shadow: 0 0 0 3px #a779ff1c; }
.input-wrapper input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #161026 inset; -webkit-text-fill-color: #f7f2ff; caret-color: white; }
.input-icon { position: absolute; z-index: 1; left: 14px; top: 16px; color: #c9b0ef; pointer-events: none; }
.input-icon svg { width: 19px; height: 19px; }
.password-toggle { position: absolute; right: 2px; top: 3px; width: 43px; height: 45px; border: none; border-radius: 5px; display: grid; place-items: center; color: #c4b4df; background: transparent; }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle:hover { background: #ac7beb19; color: white; }
.form-note { font-size: 11px; line-height: 1.65; color: #a99ebc; margin: 7px 0 0; overflow-wrap: anywhere; }
.form-note-center { text-align: center; margin: 17px 0; }
.form-note a { padding: 4px 0; display: inline-block; }
.remember { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: -4px 0 13px; font-size: 12px; color: #b8accb; cursor: pointer; }
.remember input { accent-color: #a470f6; width: 16px; height: 16px; margin: 0; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: -5px 0 10px; }
.form-options .remember { margin: 0; min-height: 40px; font-size: 11px; }
.form-options > a { font-size: 11px; min-height: 40px; display: flex; align-items: center; white-space: nowrap; }
.main-button { position: relative; display: flex; width: 100%; min-height: 51px; align-items: center; justify-content: center; padding: 12px 28px; margin: 7px 0 0; border: 1px solid #c997ff; border-radius: 8px; color: white; background: linear-gradient(110deg,#b17fff,#7940f5 36%,#6628e4 80%,#9770ff); box-shadow: 0 0 20px #9f53f74a,inset 0 2px 6px #f4d3ff55; font-size: 12px; font-weight: 600; letter-spacing: .045em; line-height: 1.55; text-align: center; text-decoration: none; transition: filter .2s,transform .2s; }
.main-button:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.main-button:active:not(:disabled) { transform: translateY(0); }
.main-button:disabled { opacity: .6; box-shadow: none; }
.auth-footer { font-size: 10px; line-height: 1.7; color: #aa9ebc; text-align: center; margin-top: 23px; padding-top: 16px; border-top: 1px solid #b080e423; }
.msg { margin-top: 14px; font-size: 12px; line-height: 1.6; color: #d7c4f4; overflow-wrap: anywhere; padding: 11px 13px; border: 1px solid #a575f140; border-radius: 8px; background: #a676ec0b; }
.msg:empty { display: none; }
.msg.err { color: #ffbecb; border-color: #d9749159; background: #d04f730b; }
.msg.ok { color: #b9ecd2; border-color: #5bba9266; background: #48ab7610; }
.step-title { margin: 26px 0 11px; text-align: center; font-size: 18px; font-weight: 500; letter-spacing: .07em; }
.step-lead { color: #ded3ef; font-size: 14px; line-height: 1.65; text-align: center; overflow-wrap: anywhere; margin: 0 0 15px; }
.otp-input { text-align: center; letter-spacing: .3em; padding: 0 10px !important; }
.turnstile-wrap { margin: 14px 0; max-width: 100%; overflow: hidden; }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.page-footer { max-width: 1880px; padding: 0 clamp(24px,3vw,56px) 20px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 9px; letter-spacing: .08em; color: #bfadd4; }
.page-footer i { font-style: normal; padding: 0 10px; color: #b47ff5; }
.page-footer > span:last-child { font-size: 9px; letter-spacing: 0; color: #b8a6c5; }
@keyframes hero-float { 0%,100% { transform: translateY(2px) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes feature-shimmer { 0%,12% { transform: translateX(-100%); } 32%,100% { transform: translateX(100%); } }
@keyframes realm-breathe { to { opacity: .55; transform: scale(1.08); } }
@keyframes motes { 0% { transform: translate3d(0,0,0); opacity: 0; } 15%,80% { opacity: .7; } 100% { transform: translate3d(30px,-100vh,0); opacity: 0; } }
.motion-paused *, .motion-paused *::before, .page-hidden *, .page-hidden *::before { animation-play-state: paused !important; }
@media (min-width: 1700px) {
  .page { grid-template-columns: minmax(490px,1.12fr) minmax(320px,1fr) minmax(420px,.95fr); }
  .feature { padding-right: 128px; min-height: 123px; }
  .hero-frame { right: 5px; }
  .feature p { font-size: 13px; }
}
@media (min-width: 1200px) and (max-height: 800px) {
  .topbar { min-height: 62px; padding-top: 12px; }
  .page { min-height: calc(100svh - 105px); padding-top: 20px; padding-bottom: 20px; }
  .auth { padding: 21px 25px; }
  .auth-logo { margin-bottom: 18px; }
  .auth-logo-symbol { width: 36px; height: 36px; margin-bottom: 8px; }
  .auth-logo h2 { max-width: 165px; }
  .auth-subtitle { margin-top: 9px; }
  .tabs { margin-bottom: 20px; }
  .auth-footer { margin-top: 16px; padding-top: 12px; }
  .form-group { margin-bottom: 14px; }
  .stage-symbol { width: 50px; }
}
@media (max-width: 1199px) {
  .topbar { padding-top: 17px; }
  .page { grid-template-columns: minmax(340px,1.15fr) minmax(330px,1fr); gap: 28px; padding-top: 18px; max-width: 1050px; }
  .brand-stage { grid-column: 1 / -1; grid-row: 1; padding: 0 0 7px; }
  .stage-brand { width: 290px; }
  .stage-symbol { display: none; }
  .stage-brand h1 { max-width: 240px; margin: auto; }
  .stage-brand p { font-size: 10px; margin-top: 7px; }
  .stage-brand p strong { display: inline; letter-spacing: .08em; margin-left: 4px; }
  .stage-caption { display: none; }
  .terminal { grid-column: 1; grid-row: 2; }
  .auth { grid-column: 2; grid-row: 2; }
  .feature-wrapper { max-height: 480px; }
  .feature p { font-size: 12px; }
  .feature h3 { font-size: 15px; }
  .feature { min-height: 121px; }
  .terminal-heading h2 { font-size: 17px; }
}
@media (max-width: 760px) {
  .background { background-position: 52% top; }
  .background::after { background: linear-gradient(180deg,#09061835,#090616b0 55%,#080614ed); }
  .topbar { padding: 13px 20px 0; min-height: 58px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand { gap: 9px; }
  .brand > span { font-size: 17px; }
  .brand small { display: none; }
  .header-motto { font-size: 7px; letter-spacing: .12em; }
  .header-motto::after { margin-top: 4px; }
  .page { display: flex; flex-direction: column; gap: 25px; padding: 23px 20px 25px; max-width: 550px; min-height: 0; }
  .brand-stage { order: 0; align-self: center; width: 100%; padding: 0; }
  .stage-brand { width: 100%; max-width: 340px; margin: auto; }
  .stage-brand h1 { max-width: 260px; }
  .stage-brand p { font-size: 8px; letter-spacing: .1em; margin-top: 10px; }
  .stage-brand p strong { display: inline; }
  .auth { order: 1; padding: 25px; max-width: none; }
  .auth-logo { margin-bottom: 20px; }
  .auth-logo-symbol, .auth-logo h2 { display: none; }
  .auth-subtitle { font-size: 12px; margin-top: 0; }
  .tabs { margin-bottom: 22px; }
  .tab { min-height: 43px; font-size: 11px; }
  .input-wrapper input { font-size: 16px; height: 53px; }
  .input-icon { top: 17px; }
  .password-toggle { top: 4px; }
  .form-label { font-size: 12px; }
  .form-note { font-size: 12px; }
  .form-note a { min-height: 40px; display: inline-flex; align-items: center; }
  .form-note-center { margin: 10px 0; }
  .main-button { min-height: 53px; font-size: 12px; }
  .auth-footer { font-size: 11px; margin-top: 20px; }
  .terminal { order: 2; width: 100%; padding: 21px 12px 14px; }
  .terminal-heading { padding-bottom: 18px; }
  .terminal-heading h2 { font-size: 17px; }
  .eyebrow { font-size: 9px; }
  .feature-wrapper { max-height: none; overflow: visible; padding: 0; gap: 10px; }
  .feature { padding: 15px 102px 15px 12px; min-height: 130px; grid-template-columns: 25px minmax(0,1fr); gap: 10px; }
  .feature-mark svg { width: 24px; height: 24px; }
  .feature h3 { font-size: 15px; text-wrap: auto; }
  .feature p { font-size: 12px; }
  .feature-code { font-size: 7px; }
  .hero-frame { right: -7px; bottom: 0; }
  .more-features { display: none; }
  .trial { margin-top: 15px; padding: 13px 11px; }
  .trial strong { font-size: 13px; }
  .plan-note { font-size: 10px; margin-top: 12px; }
  .page-footer { max-width: 550px; flex-direction: column; text-align: center; gap: 9px; padding: 3px 20px 26px; }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 14px; }
  .page { padding-inline: 12px; gap: 21px; }
  .stage-brand h1 { max-width: 230px; }
  .auth { padding: 23px 18px; }
  .tab { font-size: 10px; letter-spacing: .02em; }
  .terminal { padding-inline: 10px; }
  .terminal-heading h2 { font-size: 15px; }
  .feature { grid-template-columns: 1fr; padding: 14px 87px 14px 11px; min-height: 138px; }
  .feature-mark { display: none; }
  .hero-frame { transform: scale(.84); transform-origin: right bottom; right: -8px; }
  .feature p { font-size: 12px; }
  .trial { gap: 8px; }
  .trial > svg { width: 22px; }
  .trial strong { font-size: 12px; }
  .trial span { font-size: 10px; }
  .trial b { font-size: 26px; }
  .main-button { font-size: 11px; padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

