/* Standalone authentication uses the same tokens; its existing language/session contracts stay local. */
.fx-auth{
  background:var(--fx-canvas);
  color:var(--fx-text);
  font-family:var(--fx-font-ar)
}
.fx-auth[lang=en],html[lang=en] .fx-auth{
  font-family:var(--fx-font-en)
}
.fx-auth .fx-page{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px var(--fx-page-space)
}
.fx-auth .fx-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  width:min(1080px,100%);
  min-height:0;
  border:1px solid var(--fx-border2);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--fx-shadow);
  background:var(--fx-surface)
}
.fx-auth .fx-visual-half{
  background:var(--fb-burgundy);
  color:var(--fb-cream);
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:24px;
  min-width:0
}
.vx-logo img{
  width:184px
}
.vx-badge,.fx-auth .badge{
  font-size:12px;
  color:var(--fb-cream)
}
.vx-headline{
  font-size:28px;
  line-height:1.8;
  font-weight:600
}
.vx-headline .gr{
  color:var(--fb-champagne)
}
.vx-robot{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px
}
.vx-card{
  display:none
}
.fx-auth-symbol{
  width:184px;
  max-height:220px;
  object-fit:contain
}
.vx-switch{
  display:grid;
  gap:16px;
  font-size:13px
}
.vs-btn{
  padding:10px 16px;
  border:1px solid var(--fb-champagne);
  border-radius:8px;
  color:var(--fb-cream);
  min-height:44px;
  display:inline-flex;
  justify-content:center
}
.fx-auth .vx-copy h1,.fx-auth .vx-copy h2,.fx-auth .vx-copy p,.fx-auth .vx-tip{
  color:var(--fb-cream)
}
.vx-copy h1,.vx-copy h2{
  font-size:28px
}
.vx-copy p,.vx-tip{
  font-size:13px
}
.vx-shield,.vx-lock{
  display:grid;
  place-items:center
}
.fx-auth .fx-form-half{
  display:grid;
  align-items:center;
  padding:28px;
  min-width:0
}
.fx-form-inner{
  width:100%;
  max-width:420px;
  margin-inline:auto
}
.fx-form-head{
  margin-bottom:24px
}
.fx-form-head h1,.fx-form-head h2{
  font-size:26px;
  line-height:1.7;
  margin-bottom:8px
}
.fx-form-head p{
  font-size:14px;
  color:var(--fx-muted)
}
.fx-auth .fx-field{
  margin-bottom:16px
}
.fx-auth label{
  color:var(--fx-text);
  font-size:13px
}
.fx-auth .fx-input{
  width:100%;
  min-height:48px;
  border:1px solid var(--fx-control-border);
  border-radius:8px;
  padding:12px;
  background:var(--fx-input);
  color:var(--fx-text);
  font:inherit
}
.fx-input-wrap{
  position:relative
}
.has-eye .fx-input{
  padding-inline-end:52px
}
.fx-eye{
  position:absolute;
  inset-inline-end:4px;
  inset-block-start:4px;
  width:40px;
  height:40px;
  background:transparent;
  color:var(--fx-text);
  border:0;
  border-radius:8px
}
.fx-submit,.fx-primary-link{
  display:flex;
  width:100%;
  justify-content:center;
  align-items:center;
  min-height:48px;
  padding:12px 16px;
  background:var(--fx-primary);
  border:1px solid var(--fx-primary);
  border-radius:8px;
  color:var(--fx-on-primary);
  font:500 14px/1.8 var(--fx-font-ar);
  cursor:pointer
}
.fx-submit:hover,.fx-primary-link:hover{
  background:var(--fx-primary-hover)
}
.fx-submit:disabled{
  background:var(--fx-disabled);
  color:var(--fx-muted);
  border-color:var(--fx-control-border)
}
.fx-auth .fx-notice,.fx-auth .msg{
  padding:12px 16px;
  margin-bottom:16px;
  border:1px solid var(--fx-border);
  border-radius:8px;
  color:var(--fx-text);
  background:var(--fx-surface2);
  font-size:13px
}
.fx-auth .fx-notice.err,.fx-auth .msg.err{
  color:var(--fx-danger);
  background:var(--fx-danger-soft);
  border-color:var(--fx-danger)
}
.fx-auth .fx-notice.ok,.fx-auth .msg.ok{
  color:var(--fx-success);
  background:var(--fx-success-soft);
  border-color:var(--fx-success)
}
.fx-auth .fx-notice.warn{
  color:var(--fx-warning);
  background:var(--fx-warning-soft);
  border-color:var(--fx-warning)
}
.fx-forgot,.fx-mobile-link,.fx-back,.fx-register{
  font-size:13px;
  margin:16px 0
}
.fx-legal{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:11px;
  line-height:1.8;
  margin-top:24px;
  color:var(--fx-muted)
}
.fx-password-note{
  font-size:12px;
  color:var(--fx-muted);
  margin:12px 0
}
.fx-auth .fx-strength{
  height:4px;
  background:var(--fx-border2);
  border-radius:8px;
  overflow:hidden;
  margin-top:8px
}
.fx-strength-fill{
  height:100%;
  background:var(--fx-primary);
  transition:width var(--fx-fast)
}
.fx-strength-label,.fx-match{
  font-size:12px;
  color:var(--fx-muted)
}
.fx-public-auth-nav{
  margin-bottom:20px;
  font-size:12px
}
.fx-public-auth-nav .fx-public-nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.fx-public-auth-nav a{
  color:var(--fx-link)
}
.fx-auth .wrap{
  max-width:520px;
  width:100%;
  padding:32px 16px;
  margin:32px auto
}
.fx-auth .title{
  font-size:24px
}
.fx-auth .sub{
  color:var(--fx-muted)
}
.fx-auth .wrap input{
  width:100%;
  min-height:44px;
  padding:12px;
  border:1px solid var(--fx-control-border);
  background:var(--fx-input);
  color:var(--fx-text);
  border-radius:8px
}
.fx-auth .wrap label{
  display:block;
  margin:16px 0 8px
}
.fx-auth input:-webkit-autofill{
  box-shadow:0 0 0 1000px var(--fx-input) inset;
  -webkit-text-fill-color:var(--fx-text)
}
.fx-auth .fx-theme-control{
  margin-top:12px;
  font-size:12px;
  background:var(--fx-surface2);
  color:var(--fx-text);
  border:1px solid var(--fx-control-border);
  border-radius:8px;
  min-height:44px;
  padding:8px 12px
}

@media(max-width:767px){
  .fx-auth .fx-page{
    display:block;
    padding:12px
  }
  .fx-auth .fx-shell{
    grid-template-columns:1fr;
    min-height:0;
    border-radius:16px
  }
  .fx-auth .fx-visual-half{
    padding:16px;
    gap:12px
  }
  .fx-auth .vx-headline{
    font-size:22px
  }
  .vx-robot,.vx-switch,.vx-lock,.vx-shield,.vx-tip{
    display:none
  }
  .fx-auth .fx-form-half{
    padding:var(--fx-card-space)
  }
  .fx-form-head h1,.fx-form-head h2{
    font-size:22px
  }
  .fx-auth .fx-visual-half .vx-copy p{
    margin-bottom:0
  }
  .fx-auth .fx-form-inner{
    max-width:none
  }

}

.fx-public-logo-dark{
  display:none
}
html[data-theme=dark] .fx-public-logo-light{
  display:none
}
html[data-theme=dark] .fx-public-logo-dark{
  display:block
}
.fx-public-brand{
  display:block;
  margin-block:16px
}
.fx-public-brand img{
  width:180px
}

.fx-auth .fx-visual-half :is(h1,h2,h3){
  color:var(--fb-cream)
}
.fx-auth .fx-visual-half h2 .gr{
  color:var(--fb-champagne)
}

.vx-headline h2 span{
  display:block
}

.fx-match.ok{
  color:var(--fx-success)
}
.fx-match.err{
  color:var(--fx-danger)
}

.fx-auth :is(.fx-form-inner,.fx-field,.fx-input-wrap,.vx-copy,.fx-legal,.fx-public-auth-nav){min-width:0;max-width:100%;overflow-wrap:break-word}
.fx-auth :is(h1,h2,p,.msg,.fx-password-note){overflow-wrap:break-word}
.fx-auth :is(.fx-input,.wrap input){min-width:0;max-width:100%}
@media(max-width:767px){.fx-auth :is(.fx-input,.wrap input){font-size:16px}.fx-auth .fx-form-head{margin-bottom:16px}.fx-auth .fx-legal{margin-top:16px}}
