/* ESAGAMES auth pages, split layout (login, register, password reset, two-factor).
   Loaded after pages/auth.css by shell-auth-header.tpl. Flat: no shadows, no glows, no hover lifts. Left pane follows
   the site theme (light / dark tokens); the brand pane is always dark (it carries the deploy wall). */

.auth-split{display:grid;grid-template-columns:minmax(0,1fr);min-height:100vh;min-height:100dvh}
.auth-pane{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;min-width:0}
.auth-split .auth-top{padding:var(--s5) clamp(20px,4vw,48px)}
.auth-split .auth-top .auth-logo img{height:28px;width:auto}
.auth-top-r{display:flex;align-items:center;gap:var(--s3)}
.auth-split .auth-main{flex:1;justify-content:center;padding:var(--s5) clamp(20px,4vw,48px) var(--s8);gap:0}
.auth-split .auth-bottom{padding:var(--s4) clamp(20px,4vw,48px) var(--s5)}

/* the form sits on the page ground, not in a card */
.auth-card.auth-flat{background:transparent;border:0;border-radius:0;padding:0;max-width:420px;gap:var(--s5)}
.auth-card.auth-reg{max-width:540px}
/* the other auth pages (password reset, two-factor) keep their markup: same flat look */
.auth-split .auth-card.card{background:transparent;border:0;border-radius:0;padding:0;max-width:420px}
.auth-split .auth-head h1{font-family:var(--fDisp);font-size:clamp(28px,3vw,38px);letter-spacing:-.02em;line-height:1.1}
.auth-split .auth-card .field{height:46px}
.auth-eyebrow{font-size:var(--t12);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--brandText)}
.auth-flat .auth-head{gap:8px}
.auth-flat .auth-head h1{font-family:var(--fDisp);font-size:clamp(28px,3vw,38px);letter-spacing:-.02em;line-height:1.1}
.auth-flat .auth-head p:not(.auth-eyebrow){font-size:var(--t15)}
.auth-flat .field{height:46px;font-size:var(--t15)}
.auth-flat select.field{height:46px}
.auth-flat .form-control{height:46px}
.auth-flat .btn.lg{height:50px;font-size:var(--t15);font-weight:600}
.auth-flat .btn .ic{width:16px;height:16px}
.auth-flat .btn .ic.flip{transform:rotate(180deg)}
.auth-flat .fgroup label .opt{font-weight:400;color:var(--dim);margin-left:6px;font-size:var(--t12)}

/* icon inside a field; show / hide password */
.ifield{position:relative}
.ifield > .ic{position:absolute;left:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--dim);pointer-events:none;z-index:1}
.ifield .field{padding-left:42px}
.pw-wrap{position:relative}
.pw-wrap .field{padding-right:46px}
.pw-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:var(--rMd);background:transparent;color:var(--mute);cursor:pointer}
.pw-eye .ic{width:18px;height:18px}
.pw-eye:focus-visible{outline:2px solid var(--brandText);outline-offset:1px}

/* entrance: one soft rise for the form, once */
@keyframes authRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.auth-split .auth-card{animation:authRise .45s cubic-bezier(.2,.7,.2,1) backwards}  /* not "both": a filling transform animation would make the card the containing block of the fixed reCAPTCHA badge */

/* ---------------- register steps ---------------- */
.reg-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.reg-steps[hidden]{display:none}
.reg-steps li button{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;width:100%;cursor:default}
.reg-steps li.is-done button{cursor:pointer}
.reg-steps li button::before{content:"";display:block;height:4px;border-radius:4px;background:var(--line);transition:background-color .3s ease}
.reg-steps li.is-done button::before,.reg-steps li.is-on button::before{background:var(--brand)}
.reg-steps .n{display:none}
.reg-steps .l{font-size:var(--t125);font-weight:500;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s ease}
.reg-steps li.is-on .l{color:var(--ink);font-weight:600}
.reg-steps li.is-done .l{color:var(--mute)}
.reg-steps li button:focus-visible{outline:2px solid var(--brandText);outline-offset:4px;border-radius:4px}

.reg-form{gap:var(--s5)}
.reg-step{border:0;margin:0;padding:0;min-width:0}
.reg-step[hidden]{display:none}
.reg-step > * + *{margin-top:var(--s4)}
.reg-title{display:block;width:100%;padding:0;font-family:var(--fDisp);font-size:var(--t22);font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.reg-count{display:block;margin-bottom:4px;font-family:var(--fBody);font-size:var(--t12);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--brandText)}
.auth-reg:not(.is-stepped) .reg-count{display:none}
.reg-step .reg-sub{margin-top:6px;color:var(--mute);font-size:var(--t14)}
.reg-step .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s4) var(--s3)}
.reg-step .w2{grid-column:1 / -1}
.reg-step .field-icon{display:none}
.reg-step .fgroup[hidden],.reg-step .ferr[hidden]{display:none}
.reg-step .intl-tel-input,.reg-step .iti{display:block;width:100%}
.reg-step .control .form-control{width:100%}
.auth-reg.is-stepped .reg-step.in-fwd{animation:regIn .3s cubic-bezier(.2,.7,.2,1) backwards}
.auth-reg.is-stepped .reg-step.in-back{animation:regInBack .3s cubic-bezier(.2,.7,.2,1) backwards}
@keyframes regIn{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
@keyframes regInBack{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}

/* personal | company */
.reg-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3)}
.reg-opt{position:relative;display:block;cursor:pointer}
.reg-opt input{position:absolute;opacity:0;pointer-events:none}
.reg-opt > span{display:flex;flex-direction:column;gap:2px;padding:14px 16px 14px 44px;border:1.5px solid var(--lineControl);border-radius:var(--rLg);background:var(--field);transition:border-color .15s ease,background-color .15s ease}
.reg-opt > span::before{content:"";position:absolute;left:16px;top:17px;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--lineControl);background:var(--field);box-sizing:border-box}
.reg-opt b{font-size:var(--t15);color:var(--ink)}
.reg-opt small{font-size:var(--t125);color:var(--mute)}
.reg-opt input:checked + span{border-color:var(--brand);background:var(--brandSoft)}
.reg-opt input:checked + span::before{border:5px solid var(--brand);background:#fff}
.reg-opt input:focus-visible + span{outline:2px solid var(--brandText);outline-offset:2px}

.reg-nav{display:flex;gap:var(--s3);align-items:center}
.reg-nav .btn[hidden]{display:none}
.reg-nav .btn.primary{flex:1}
.reg-nav .reg-back{flex:0 0 auto;min-width:120px}
.auth-reg:not(.is-stepped) .reg-nav .reg-submit{flex:0 1 auto;min-width:240px}

/* ---------------- brand pane ---------------- */
/* Edge to edge, half the screen: the game store's deploy wall (store-gamehost/wall.js) in the upper part, the pitch
   over the dark floor under it. The wall's tokens are fixed here, the pane is night in both themes. */
.auth-media{display:none}
@media (min-width:1100px){
  .auth-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .auth-media{display:flex;flex-direction:column;justify-content:flex-end;position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;isolation:isolate;
    --em-stage:#0d0d0d;--em-scrim:13,13,13;--em-night-success:#79CA8B;--em-night-warning:#E7B416;background:#0d0d0d;color:#f4f1eb;color-scheme:dark}
}
.auth-wall{position:absolute;inset:0;z-index:0;background:#0d0d0d no-repeat 50% 0 / cover;transition:opacity .8s ease}
.auth-gl{position:absolute;inset:0;z-index:0}
.auth-gl canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity 1.8s ease}
.auth-gl.is-on canvas{opacity:1}
.auth-gl.is-on ~ .auth-wall,.auth-media:has(.auth-gl.is-on) .auth-wall{opacity:0}
.auth-slot{position:absolute;pointer-events:none;top:5vh;left:0;right:0;bottom:min(330px,38%)}
/* the copy reads on the floor: a scrim from the bottom up */
.auth-media::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(0deg,rgba(var(--em-scrim),.96) 0,rgba(var(--em-scrim),.82) min(300px,34%),rgba(var(--em-scrim),0) min(460px,52%))}
.auth-media-copy{position:relative;z-index:2;flex:none;padding:8px clamp(32px,4vw,64px) clamp(32px,5vh,56px);display:flex;flex-direction:column;gap:14px}
.auth-kicker{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;color:#bdb7ad;letter-spacing:.01em}
.auth-kicker .dot{width:8px;height:8px;border-radius:50%;background:#34a867;flex:none}
.auth-media-copy h2{margin:0;font-family:var(--fDisp);font-size:clamp(32px,2.9vw,52px);line-height:1.05;letter-spacing:-.025em;font-weight:600;color:#f4f1eb;max-width:16ch}
.auth-media-copy > p{margin:0;font-size:clamp(15px,1.05vw,17px);line-height:1.55;color:#c9c3b9;max-width:46ch}
.auth-proof{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.auth-proof li{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid #333;border-radius:999px;background:#151515;font-size:13.5px;font-weight:500;color:#e9e4dc}
.auth-proof .ic{width:16px;height:16px;color:#f89044}
.auth-trust{display:inline-flex;align-items:center;gap:10px;font-size:13.5px;color:#bdb7ad;text-decoration:none;width:max-content}
.auth-trust:hover{color:#f4f1eb}
.auth-trust .stars{display:inline-flex;gap:3px}
.auth-trust .stars i{width:15px;height:15px;background:#f89044;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.auth-trust .stars i.half{background:linear-gradient(90deg,#f89044 50%,#3a3a3a 50%)}
.auth-media-copy > *{animation:authRise .6s cubic-bezier(.2,.7,.2,1) backwards}
.auth-media-copy > :nth-child(2){animation-delay:.08s}
.auth-media-copy > :nth-child(3){animation-delay:.16s}
.auth-media-copy > :nth-child(4){animation-delay:.24s}
.auth-media-copy > :nth-child(5){animation-delay:.32s}

@media (max-width:767.98px){
  .auth-split .auth-top{padding:var(--s4) var(--gutter)}
  .auth-split .auth-main{justify-content:flex-start;padding:var(--s4) var(--gutter) var(--s7)}
  .auth-split .auth-top .back .t{display:none}
}
@media (max-width:520px){
  .reg-step .grid2{grid-template-columns:minmax(0,1fr)}
  .reg-type{grid-template-columns:minmax(0,1fr)}
  .reg-steps .l{font-size:var(--t12)}
  .reg-steps li:not(.is-on) .l{visibility:hidden}
  .reg-nav .reg-back{min-width:0}
}
@media (prefers-reduced-motion:reduce){
  .auth-split .auth-card,.auth-media-copy > *,.auth-reg.is-stepped .reg-step.in-fwd,.auth-reg.is-stepped .reg-step.in-back{animation:none}
}
