@font-face{font-family:LegionCinzel;src:url('/assets/cinzel-700.v8.woff') format('woff');font-weight:700;font-display:swap}
@font-face{font-family:LegionSora;src:url('/assets/sora-400.v8.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:LegionSora;src:url('/assets/sora-600.v8.woff') format('woff');font-weight:600;font-display:swap}
.legion-entry{font-family:LegionSora,Inter,sans-serif;background:#070707;min-height:100svh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);grid-template-rows:auto 1fr;isolation:isolate}
.legion-entry .entry-brand{grid-column:1;grid-row:1;text-align:center;color:#f5f2ed;padding:38px 24px 27px;background:#070707}
.entry-brand strong{font-family:LegionCinzel,Georgia,serif;font-size:clamp(25px,2.7vw,36px);font-weight:700;letter-spacing:.13em;line-height:1.25;display:block}
.entry-brand span{font-family:LegionSora,sans-serif;font-size:9px;letter-spacing:.42em;display:block;margin-top:17px;color:#b9b4ae;font-weight:400}
.legion-entry .auth-art{grid-column:1;grid-row:2;min-height:0;padding:0;background:none;display:flex;flex-direction:column}
.legion-entry .entry-portrait{flex:1;min-height:350px;background-image:linear-gradient(0deg,#070707 0%,#07070770 15%,transparent 45%,#07070735 100%),linear-gradient(90deg,#07070766,transparent 20%,transparent 80%,#07070766),url('/assets/entry-bg.3470406558.webp');background-position:center,center,center 31%;background-size:cover;background-repeat:no-repeat}
.legion-entry .auth-statement{padding:0 24px 34px;margin:0;text-align:center;position:relative;background:#070707}
.entry-heartbeat{width:100%;max-width:340px;margin:0 auto 10px}
.entry-heartbeat svg{display:block;width:100%;height:auto;stroke:#e51b23;stroke-linecap:round;stroke-linejoin:round;fill:none}
.pulse-draw{stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:0;animation:legion-trace 2s ease-out both}
.entry-heartbeat .pulse-year{font-family:LegionCinzel,Georgia,serif;font-weight:700;font-size:21px;letter-spacing:2px;fill:#e51b23;stroke:none}
.legion-entry .auth-statement h1{font-family:LegionSora,sans-serif;font-size:clamp(21px,2vw,27px);font-weight:400;letter-spacing:-.035em;line-height:1.4;margin:0;color:#bcb6b2}
.legion-entry .auth-statement h1 span{font-weight:600;color:#faf7f3}
.legion-entry .auth-panel{grid-column:2;grid-row:1 / 3;padding:40px;background:transparent;display:flex;align-items:center;justify-content:center}
.legion-entry .auth-inner{max-width:350px;width:100%}
.legion-entry .auth-inner h2{font-size:25px;font-weight:600;line-height:1.3;letter-spacing:-.035em;margin:0 0 10px}
.legion-entry .auth-intro{font-size:12px;color:#aaa9a7;line-height:1.8;margin-bottom:22px}
.legion-entry .btn{display:flex;align-items:center;justify-content:center;min-height:54px;height:auto;width:100%;border-radius:9px;font-family:inherit;font-size:13px;letter-spacing:.015em;font-weight:600;padding:15px 20px;text-align:center;line-height:1.4}
.legion-entry .auth-inner>.btn{margin:0}
.legion-entry .auth-inner>.btn+.btn{margin-top:12px}
.legion-entry .btn.primary{background:#e51b23;border:1px solid #e51b23;color:#fff}
.legion-entry .btn:not(.primary){background:#111010;border:1px solid #514b49;color:#f8f6f3}
.legion-entry .btn:not(.primary):hover{border-color:#b9aaa5;background:#191515}
.legion-entry .btn[data-auth="login"]{background:#070707;border-color:#736b67;color:#fff}
.legion-entry .btn[data-auth="login"]:hover{background:#070707;border-color:#a69b95}
.legion-entry .btn:focus-visible,.legion-entry .plain-link:focus-visible{outline:2px solid #fff;outline-offset:4px}
.legion-entry .auth-links{justify-content:center;margin:10px 0 0;gap:28px}
.legion-entry .plain-link{font-family:inherit;font-size:10px;color:#b9b2ae;padding:10px 0;min-height:40px}
.legion-entry .plain-link[data-auth="recover"]{font-size:11px;color:#d4ceca;min-height:44px;padding:12px 8px}
.legion-entry .plain-link:hover{color:#fff;text-decoration:underline;text-decoration-color:#e51b23;text-underline-offset:5px}
.legion-entry .field{gap:7px;margin:14px 0}
.legion-entry .field label{font-size:10px;color:#c8c4c2}
.legion-entry input{background:#141313;border-color:#33302f;border-radius:8px;min-height:48px;font-family:inherit;font-size:16px}
.legion-entry input:focus{border-color:#e51b23;box-shadow:0 0 0 1px #e51b23}
.legion-entry #auth-error{font-size:11px;line-height:1.7;color:#fff;border-left:2px solid #e51b23;padding-left:10px}
.legion-entry #auth-error:empty{display:none}
@keyframes legion-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media(max-width:720px){
 .legion-entry{display:flex;flex-direction:column;min-height:100svh}
 .legion-entry .entry-brand{flex:none;padding:27px 20px 22px}
 .entry-brand strong{font-size:clamp(23px,6.2vw,28px);letter-spacing:.11em}
 .entry-brand span{font-size:8px;letter-spacing:.38em;margin-top:15px}
 .legion-entry .auth-art{flex:1;height:auto;min-height:0;padding:0;background:none}
 .legion-entry .entry-portrait{flex:1;min-height:clamp(220px,38svh,380px);background-position:center,center,center 31%}
 .legion-entry .auth-statement{padding:0 24px 21px}
 .entry-heartbeat{max-width:280px;margin:0 auto 8px}
 .legion-entry .auth-statement h1{font-size:clamp(20px,5.4vw,24px);letter-spacing:-.035em}
 .legion-entry .auth-panel{padding:0 28px max(16px,env(safe-area-inset-bottom));flex:none}
 .legion-entry .auth-inner{max-width:390px}
 .legion-entry.is-form .auth-art{display:none}
 .legion-entry.is-form .auth-panel{flex:1;align-items:flex-start;padding-top:24px;padding-bottom:28px}
 .legion-entry.is-form .entry-brand{padding-bottom:25px;border-bottom:1px solid #231e1c}
 .legion-entry.is-form .auth-inner h2{font-size:23px;margin:0 0 8px}
 .legion-entry.is-form .auth-intro{margin-bottom:20px}
 .keyboard-open .legion-entry.is-form .entry-brand{display:none}
 .keyboard-open .legion-entry.is-form .auth-panel{padding-top:24px}
}
@media(max-width:720px) and (min-height:740px){.legion-entry.is-welcome .auth-statement{padding-bottom:24px}}
@media(prefers-reduced-motion:reduce){.pulse-draw{animation:none;stroke-dashoffset:0}}

/* Registration feedback keeps the existing entry layout. */
.auth-field-error{display:block;color:#ffb4b4;font-size:.78rem;line-height:1.5;margin-top:5px}.auth-field-error:empty{display:none}.legion-entry input[aria-invalid="true"]{border-color:#ed7777}.legion-entry #auth-error[role="status"]{color:#c4edbd}.legion-entry form[aria-busy="true"] button{cursor:wait}
