/* auth-pages v1 — real login/register forms, visual layer only */
html[data-theme]:has(.login-wrap){overflow-x:hidden}
html[data-theme][data-theme] .login-wrap{
  --auth-bg:#fbfaf7;
  --auth-card:#fff;
  --auth-line:#deded9;
  --auth-text:#171814;
  --auth-muted:#64665f;
  --auth-input:#fff;
  --auth-orbit:#cbbcf1;
  --auth-lime:#c3e865;
  min-height:100dvh;
  overflow-x:hidden;
  overflow-y:auto;
  isolation:isolate;
  display:block!important;
  background:var(--auth-bg)!important;
  color:var(--auth-text);
  padding:0!important;
  position:relative;
}
html[data-theme=dark][data-theme] .login-wrap{
  --auth-bg:#0e0e0c;
  --auth-card:#1c1b19;
  --auth-line:#34322e;
  --auth-text:#f3f2ed;
  --auth-muted:#b2ada5;
  --auth-input:#141311;
  --auth-orbit:#4a463f;
  --auth-lime:#c3e865;
}
html[data-theme][data-theme] .login-wrap::before,
html[data-theme][data-theme] .login-wrap::after,
html[data-theme][data-theme] .login-split::before{
  content:"";
  position:fixed;
  pointer-events:none;
  z-index:-1;
}
html[data-theme][data-theme] .login-wrap::before{
  width:520px;height:220px;left:-280px;top:78px;
  border:1px solid var(--auth-orbit);border-radius:50%;
  transform:rotate(-12deg);opacity:.72;
}
html[data-theme][data-theme] .login-wrap::after{
  width:500px;height:250px;right:-290px;top:250px;
  border:1px solid var(--auth-orbit);border-radius:50%;
  transform:rotate(-32deg);opacity:.72;
}
html[data-theme][data-theme] .login-split::before{
  width:310px;height:260px;left:-105px;bottom:-115px;
  border-radius:48% 52% 35% 65% / 55% 45% 55% 45%;
  background:linear-gradient(135deg,rgba(195,232,101,.18),rgba(195,232,101,.04));
  filter:blur(.2px);
}
html[data-theme=dark][data-theme] .login-split::before{opacity:.48}

html[data-theme][data-theme] .login-split{
  display:block!important;
  min-height:100dvh;
  position:relative;
}
html[data-theme][data-theme] .login-stage{display:none!important}
html[data-theme][data-theme] .login-pane{
  min-height:100dvh;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box;
  display:flex!important;
  align-items:center;
  justify-content:center;
  padding:108px 24px 92px!important;
  border:0!important;
  background:transparent!important;
  position:relative;
  z-index:1;
}

/* Approved brand component, anchored independently from the card. */
html[data-theme][data-theme] .login-pane-top{
  position:fixed;
  top:20px;left:34px;
  z-index:20;
  margin:0!important;
}
html[data-theme][data-theme] .login-pane-top .brand-lockup{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  margin:0!important;
  text-align:left!important;
}
html[data-theme][data-theme] .login-pane-top .brand-lockup>div{
  display:block!important;text-align:left!important;
}
html[data-theme][data-theme] .login-pane-top .brand-logo,
html[data-theme][data-theme] .login-pane-top .brand-mark{
  width:38px!important;height:38px!important;
  border-radius:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
html[data-theme][data-theme] .login-pane-top .brand-lockup b{
  max-width:none!important;
  color:var(--auth-text)!important;
  font:700 16px/1.1 Manrope,Inter,sans-serif!important;
  letter-spacing:-.035em!important;
}
html[data-theme][data-theme] .login-pane-top .brand-lockup small{display:none!important}

/* The existing form container is the centered card. */
html[data-theme][data-theme] .login-pane-body{
  flex:none!important;
  box-sizing:border-box;
  width:min(468px,100%)!important;
  max-width:468px!important;
  margin:auto!important;
  padding:30px!important;
  border:1px solid var(--auth-line);
  border-radius:16px;
  background:var(--auth-card)!important;
  box-shadow:0 16px 42px rgba(28,28,24,.10);
  color:var(--auth-text);
  position:relative;
}
html[data-theme][data-theme] .login-pane-body:has(.login-form-register){
  width:min(590px,100%)!important;
  max-width:590px!important;
}
html[data-theme=dark][data-theme] .login-pane-body{
  box-shadow:0 20px 52px rgba(0,0,0,.42);
}
html[data-theme][data-theme] .login-hero{
  margin:0 0 3px!important;
  color:var(--auth-text)!important;
  font:700 25px/1.18 Manrope,Inter,sans-serif!important;
  letter-spacing:-.04em!important;
  text-align:left!important;
}
html[data-theme][data-theme] .login-lead{
  margin:0 0 20px!important;
  color:var(--auth-muted)!important;
  font:400 13px/1.45 Manrope,Inter,sans-serif!important;
  text-align:left!important;
}
html[data-theme][data-theme] .login-form{
  display:flex;
  flex-direction:column;
  gap:13px!important;
  margin:0!important;
}
html[data-theme][data-theme] .login-form .field{margin:0!important}
html[data-theme][data-theme] .login-form .field>label{
  margin:0 0 6px;
  color:var(--auth-text)!important;
  font:600 12px/1.3 Manrope,Inter,sans-serif!important;
}
html[data-theme][data-theme] .login-wrap .login-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]){
  box-sizing:border-box;
  width:100%;
  height:46px!important;
  min-height:46px!important;
  padding:0 13px;
  border:1px solid var(--auth-line)!important;
  border-radius:8px!important;
  background:var(--auth-input)!important;
  color:var(--auth-text)!important;
  font:400 14px/1 Manrope,Inter,sans-serif;
  box-shadow:none!important;
}
html[data-theme][data-theme] .login-form .field-ico{position:relative;display:block}
html[data-theme][data-theme] .login-form .field-ico>svg.ico{position:absolute;left:14px;top:50%;z-index:1;color:var(--auth-muted);pointer-events:none;transform:translateY(-50%)}
html[data-theme][data-theme] .login-form .field-ico input{padding-left:42px}
html[data-theme][data-theme] .login-form .password-field{width:100%}
html[data-theme][data-theme] .login-form .password-eye{color:var(--auth-muted)!important}
html[data-theme][data-theme] .login-form input::placeholder{color:#9b9c95}
html[data-theme][data-theme] .login-form input:hover{border-color:#b9bab3!important}
html[data-theme][data-theme] .login-wrap .login-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]):focus,
html[data-theme][data-theme] .login-wrap .login-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]):focus-visible{
  border:1px solid #7c903a!important;
  outline:2px solid #b7d64a!important;
  outline-offset:2px!important;
  box-shadow:none!important;
}
html[data-theme][data-theme] .login-form input[aria-invalid=true]{
  border-color:#c94a43!important;
}
html[data-theme][data-theme] .password-eye{
  right:7px!important;
  color:var(--auth-muted)!important;
}
html[data-theme][data-theme] .password-eye:focus-visible,
html[data-theme][data-theme] .login-forgot:focus-visible,
html[data-theme][data-theme] .login-signup-link:focus-visible,
html[data-theme][data-theme] .login-create:focus-visible,
html[data-theme][data-theme] .login-support:focus-visible{
  outline:2px solid #718a2d!important;
  outline-offset:2px!important;
}
html[data-theme][data-theme] .auth-password-hint{
  display:block;margin:5px 0 0;color:var(--auth-muted);
  font:400 11px/1.35 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .auth-field-error{
  display:block;margin:5px 0 0;color:#b42318;
  font:500 11px/1.35 Manrope,Inter,sans-serif;
}
html[data-theme=dark][data-theme] .auth-field-error{color:#fca5a5}

html[data-theme][data-theme] .login-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:20px;
}
html[data-theme][data-theme] .login-remember{
  display:inline-flex;align-items:center;gap:8px;color:var(--auth-muted);
  font:400 12px/1.3 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .login-remember input,
html[data-theme][data-theme] .login-terms input{
  flex:0 0 auto;width:16px;height:16px;margin:0;
  accent-color:var(--auth-lime);
}
html[data-theme][data-theme] .login-forgot,
html[data-theme][data-theme] .login-signup-link,
html[data-theme][data-theme] .login-create{
  color:var(--auth-text)!important;
  text-decoration:underline!important;
  text-underline-offset:2px;
}
html[data-theme][data-theme] .login-forgot{
  padding:0;border:0;background:none;
  font:500 12px/1.3 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .login-terms{
  display:flex;justify-content:flex-start;align-items:flex-start;gap:8px;
  margin:0!important;color:var(--auth-muted)!important;
  font:400 11px/1.35 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .login-terms a{color:var(--auth-text)!important}

html[data-theme][data-theme] .login-actions,
html[data-theme][data-theme] .login-actions-stack{
  display:flex;flex-direction:column;align-items:stretch;gap:10px!important;
  margin:2px 0 0!important;
}
html[data-theme][data-theme] .login-actions .login-submit{
  box-sizing:border-box;
  width:100%;min-width:0!important;height:46px;min-height:46px!important;
  margin:0!important;padding:0 18px;
  border:0!important;border-radius:8px!important;
  background:var(--auth-lime)!important;color:#151710!important;
  font:700 14px/1 Manrope,Inter,sans-serif!important;
  box-shadow:none!important;
}
html[data-theme][data-theme] .login-actions .login-submit:hover{filter:brightness(.97)}
html[data-theme][data-theme] .login-actions .login-submit:focus-visible{
  outline:3px solid color-mix(in srgb,var(--auth-lime) 48%,#111)!important;
  outline-offset:2px!important;
}
html[data-theme][data-theme] .login-actions .login-submit:disabled{
  opacity:.62;cursor:wait;
}
html[data-theme][data-theme] .login-actions .login-create{
  width:auto!important;min-width:0!important;min-height:0!important;
  margin:0 auto!important;padding:2px 0!important;
  border:0!important;border-radius:0!important;background:none!important;
  font:400 12px/1.4 Manrope,Inter,sans-serif!important;
}

/* Registration: the real form elements become a two-column desktop grid. */
html[data-theme][data-theme] .login-form-register{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:13px 18px!important;
}
html[data-theme][data-theme] .login-form-register>.field:nth-of-type(1){grid-column:1}
html[data-theme][data-theme] .login-form-register>.field:nth-of-type(2){grid-column:2}
html[data-theme][data-theme] .login-form-register>.field:nth-of-type(3){grid-column:1/-1}
html[data-theme][data-theme] .login-form-register>.field:nth-of-type(4){grid-column:1}
html[data-theme][data-theme] .login-form-register>.field:nth-of-type(5){grid-column:2}
html[data-theme][data-theme] .login-form-register>.field:nth-of-type(n+6){grid-column:1/-1}
html[data-theme][data-theme] .login-form-register>.login-terms,
html[data-theme][data-theme] .login-form-register>.login-actions{grid-column:1/-1}
html[data-theme][data-theme] .hp-field{display:none!important}

/* Sign-up line and support remain real interactive controls. */
html[data-theme][data-theme] .login-alt{margin:13px 0 0;text-align:center}
html[data-theme][data-theme] .login-divider{display:none!important}
html[data-theme][data-theme] .login-signup{
  margin:0;color:var(--auth-muted);
  font:400 12px/1.45 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .login-signup-link{
  padding:0;border:0;background:none;font:600 12px/1.45 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .login-help{
  position:absolute;
  left:50%;top:calc(100% + 28px);
  transform:translateX(-50%);
  display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:8px;
  width:max-content;max-width:calc(100vw - 28px);
  white-space:nowrap;
  color:var(--auth-muted);
  font:400 12px/1.4 Manrope,Inter,sans-serif;
}
html[data-theme][data-theme] .login-support{
  display:inline-flex;align-items:center;gap:6px;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  color:var(--auth-text)!important;font-weight:600;text-decoration:none;
}
html[data-theme][data-theme] .login-support:hover{text-decoration:underline}

/* Existing language and theme controls, moved to the top right. */
html[data-theme][data-theme] .login-pane-foot{display:block!important}
html[data-theme][data-theme] .login-pane-foot>span{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
  color:var(--auth-muted);font:400 11px/1.3 Manrope,Inter,sans-serif;
  white-space:nowrap;
}
html[data-theme][data-theme] .login-pane-foot-tools{
  position:fixed;top:20px;right:34px;z-index:30;
  display:flex;align-items:center;gap:8px;
}
html[data-theme][data-theme] .login-pane-foot .lang-trigger,
html[data-theme][data-theme] .login-pane-foot .icon-btn{
  min-width:36px!important;height:36px!important;min-height:36px!important;
  padding:0 7px!important;border:0!important;background:transparent!important;
  color:var(--auth-text)!important;border-radius:8px!important;
}
html[data-theme][data-theme] .login-pane-foot .lang-trigger:hover,
html[data-theme][data-theme] .login-pane-foot .icon-btn:hover{
  background:color-mix(in srgb,var(--auth-text) 6%,transparent)!important;
}
html[data-theme][data-theme] .login-pane-foot .lang-pop{
  top:calc(100% + 8px)!important;right:0!important;bottom:auto!important;
}
html[data-theme][data-theme] .login-pane-foot-sep{background:var(--auth-line)!important}

html[data-theme][data-theme] .login-pane-body>.error,
html[data-theme][data-theme] .login-pane-body>.ok{
  margin:0 0 13px;border-radius:8px;font-size:12px;line-height:1.4;
}
html[data-theme][data-theme] .login-pane-body>.caption{display:none!important}
html[data-theme][data-theme].ufo-wait .main::before{position:fixed}

@media (max-width:720px){
  html[data-theme][data-theme] .login-wrap::before{left:-390px;top:50px}
  html[data-theme][data-theme] .login-wrap::after{right:-410px;top:340px}
  html[data-theme][data-theme] .login-pane{align-items:flex-start;padding:92px 14px 112px!important}
  html[data-theme][data-theme] .login-pane-top{top:16px;left:16px}
  html[data-theme][data-theme] .login-pane-foot-tools{top:16px;right:14px}
  html[data-theme][data-theme] .login-pane-top :is(.brand-logo,.brand-mark){width:32px!important;height:32px!important}
  html[data-theme][data-theme] .login-pane-top .brand-lockup b{font-size:14px!important}
  html[data-theme][data-theme] .login-pane-body,
  html[data-theme][data-theme] .login-pane-body:has(.login-form-register){
    width:100%!important;max-width:none!important;padding:22px 20px!important;
  }
  html[data-theme][data-theme] .login-form-register{grid-template-columns:1fr!important}
  html[data-theme][data-theme] .login-form-register>*{grid-column:1!important}
  html[data-theme][data-theme] .login-help{
    position:static;left:auto;top:auto;transform:none;
    width:auto;max-width:100%;
    margin:16px auto 0!important;
    flex-wrap:wrap;gap:4px 8px;
  }
  html[data-theme][data-theme] .login-pane-foot>span{
    position:static;display:block;transform:none;
    margin-top:14px;text-align:center;
  }
  html[data-theme][data-theme] .login-pane{padding-bottom:28px!important}
}
@media (max-width:430px){
  html[data-theme][data-theme] .login-pane-body{padding:20px 16px!important}
  html[data-theme][data-theme] .login-hero{font-size:23px!important}
}
@media (max-height:680px) and (min-width:721px){
  html[data-theme][data-theme] .login-pane{align-items:flex-start;padding-top:88px!important}
  html[data-theme][data-theme] .login-pane-foot>span{position:absolute}
}

/* First-visit language card. The shared login background is a block, so this
   screen has to opt back into centering or the card sits in the top corner. */
html[data-theme][data-theme] .login-wrap.lang-welcome-wrap{
  display:grid!important;
  place-items:center;
  min-height:100dvh;
  padding:32px 20px!important;
  box-sizing:border-box;
}
html[data-theme][data-theme] .lang-welcome-card{
  width:min(400px,100%);
  margin:0;
  text-align:center;
  position:relative;
  z-index:1;
}
html[data-theme][data-theme] .lang-welcome-card .brand-lockup{
  justify-content:center;
  margin:0 auto 10px;
}
html[data-theme][data-theme] .lang-welcome-card .brand-mark{
  width:40px!important;
  height:36px!important;
}
