
:root{
  --auth-purple:#4F329A;
  --auth-navy:#19243A;
  --auth-navy-2:#1F2940;
  --auth-navy-3:#1B253B;
  --auth-muted:#747490;
  --auth-white:#FFFFFF;
  --auth-offwhite:#F9F8FA;
  --auth-blush:#F0E5ED;
  --auth-border:#E7E5EE;
  --auth-danger:#DC3545;
}

main.fshauth-page{
  overflow-x:clip;
  background:var(--auth-offwhite);
}

.fshauth-shell-section{
  position:relative;
  padding:64px 0 72px;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 6%,rgba(79,50,154,.08),transparent 26%),
    radial-gradient(circle at 94% 94%,rgba(240,229,237,.75),transparent 28%),
    var(--auth-offwhite);
}

.fshauth-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(430px,.82fr);
  max-width:1180px;
  margin:0 auto;
  overflow:hidden;
  border:1px solid rgba(25,36,58,.08);
  border-radius:30px;
  background:#fff;
  box-shadow:0 28px 80px rgba(25,36,58,.12);
}

/* LEFT */
.fshauth-side{
  position:relative;
  overflow:hidden;
  min-height:610px;
  color:#fff;
  background:
    radial-gradient(circle at 94% 8%,rgba(79,50,154,.62),transparent 34%),
    radial-gradient(circle at 10% 95%,rgba(240,229,237,.10),transparent 28%),
    linear-gradient(145deg,var(--auth-navy) 0%,var(--auth-navy-2) 60%,var(--auth-purple) 145%);
}

.fshauth-side::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-160px;
  bottom:-145px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  box-shadow:
    0 0 0 45px rgba(255,255,255,.022),
    0 0 0 90px rgba(255,255,255,.014);
}

.fshauth-side-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  height:100%;
  padding:46px;
}

.fshauth-side-badge{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#EEE9FB;
  font-size:13px;
  font-weight:900;
  letter-spacing:.4px;
}

.fshauth-side h1{
  max-width:600px;
  margin:22px 0 0;
  color:#fff;
  font-size:clamp(38px,4.2vw,58px);
  line-height:1.02;
  letter-spacing:-2px;
  font-weight:900;
}

.fshauth-side h1 span{
  display:block;
  color:var(--auth-blush);
}

.fshauth-side-text{
  max-width:570px;
  margin:18px 0 0;
  color:rgba(255,255,255,.70);
  font-size:16px;
  line-height:1.7;
}

.fshauth-side-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:40px;
}

.fshauth-side-item{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:92px;
  padding:20px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:15px;
  background:rgba(255,255,255,.065);
}

.fshauth-side-item > i{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#fff;
  background:var(--auth-purple);
  font-size:18px;
}

.fshauth-side-item strong,
.fshauth-side-item small{
  display:block;
}

.fshauth-side-item strong{
  color:#fff;
  font-size:16px;
  line-height:1.25;
}

.fshauth-side-item small{
  margin-top:3px;
  color:rgba(255,255,255,.54);
  font-size:14px;
  line-height:1.3;
}

.fshauth-side-note{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-top:auto;
  padding:20px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:15px;
  background:rgba(255,255,255,.065);
}

.fshauth-side-note > i{
  color:#D8CFF4;
  margin-top:2px;
}

.fshauth-side-note strong,
.fshauth-side-note small{
  display:block;
}

.fshauth-side-note strong{
  color:#fff;
  font-size:16px;
}

.fshauth-side-note small{
  margin-top:3px;
  color:rgba(255,255,255,.56);
  font-size:14px;
  line-height:1.4;
}

.fshauth-register-points{
  display:grid;
  gap:11px;
  margin-top:28px;
}

.fshauth-register-points > div{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:700;
}

.fshauth-register-points i{
  color:var(--auth-blush);
}

.fshauth-side-quote{
  margin-top:auto;
  padding-top:28px;
}

.fshauth-side-quote span,
.fshauth-side-quote small{
  display:block;
}

.fshauth-side-quote span{
  color:#fff;
  font-size:18px;
  font-weight:900;
}

.fshauth-side-quote small{
  margin-top:5px;
  color:rgba(255,255,255,.54);
  font-size:10px;
}

/* RIGHT */
.fshauth-panel{
  align-self:center;
  padding:42px;
  background:#fff;
}

.fshauth-panel-top{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:28px;
}

.fshauth-panel-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(135deg,var(--auth-purple),var(--auth-navy));
  box-shadow:0 12px 28px rgba(79,50,154,.18);
  font-size:19px;
}

.fshauth-mini-label{
  display:block;
  margin-bottom:4px;
  color:#9C93B4;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.2px;
}

.fshauth-panel h2{
  margin:0;
  color:var(--auth-navy);
  font-size:28px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.6px;
}

.fshauth-panel-top p{
  margin:5px 0 0;
  color:var(--auth-muted);
  font-size:15px;
}

.fshauth-field{
  margin-bottom:18px;
}

.fshauth-form .form-label{
  margin-bottom:7px;
  color:var(--auth-navy);
  font-size:15px;
  font-weight:850;
}

.fshauth-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.fshauth-input{
  position:relative;
  display:block;
  width:100%;
}

.fshauth-input > i:not(.fshauth-toggle-pass i){
  position:absolute;
  left:15px;
  top:50%;
  z-index:2;
  transform:translateY(-50%);
  color:var(--auth-purple);
  font-size:15px;
  pointer-events:none;
}

.fshauth-input .form-control{
  width:100%;
  min-height:49px;
  padding:11px 44px 11px 43px;
  border:1px solid var(--auth-border);
  border-radius:13px;
  background:#FBFAFC;
  color:var(--auth-navy);
  font-size:16px;
  font-weight:650;
  outline:0;
  transition:.2s ease;
}

.fshauth-input .form-control::placeholder{
  color:#A4A7B2;
  font-weight:500;
}

.fshauth-input .form-control:focus{
  border-color:rgba(79,50,154,.50);
  background:#fff;
  box-shadow:0 0 0 4px rgba(79,50,154,.09);
}

.fshauth-toggle-pass{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  background:transparent!important;
  border:none!important;
  outline:none!important;
  box-shadow:none!important;
  padding:6px;
  margin:0;
  color:#747987;
  font-size:14px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  transition:color .2s ease;
}

.fshauth-toggle-pass:hover{
  color:var(--auth-purple);
}

.fshauth-toggle-pass i{
  font-size:14px;
  color:inherit;
}

.fshauth-link,
.fshauth-check a{
  color:var(--auth-purple)!important;
  font-size:15px;
  font-weight:850;
  text-decoration:none!important;
}

.fshauth-link:hover,
.fshauth-check a:hover{
  color:var(--auth-navy)!important;
}

.fshauth-optional{
  color:#9693A1;
  font-weight:600;
}

.fshauth-check{
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#6E7280;
  font-size:15px;
  line-height:1.55;
  font-weight:650;
}

.fshauth-check input{
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin-top:1px;
  accent-color:var(--auth-purple);
}

.fshauth-submit{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:5px;
  padding:11px 16px;
  border:0;
  border-radius:13px;
  color:#fff;
  background:linear-gradient(135deg,var(--auth-purple),var(--auth-navy));
  box-shadow:0 12px 26px rgba(79,50,154,.18);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  transition:.22s ease;
}

.fshauth-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(79,50,154,.24);
}

.fshauth-submit:disabled{
  cursor:not-allowed;
  opacity:.8;
}

.fshauth-switch{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--auth-border);
  color:#475569;
  font-size:15.5px;
  font-weight:700;
}

.fshauth-switch a{
  color:var(--auth-purple)!important;
  font-size:16px;
  font-weight:800;
  text-decoration:none!important;
  border-bottom:2px solid var(--auth-purple);
  padding-bottom:1px;
  transition:all .2s ease;
}

.fshauth-switch a:hover{
  color:var(--auth-pink)!important;
  border-color:var(--auth-pink);
}

/* Register tuning */
.fshauth-shell-register{
  grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);
}

.fshauth-register-panel{
  padding:34px 38px;
}

.fshregister-page .fshauth-side{
  min-height:650px;
}

.fshregister-page .fshauth-panel-top{
  margin-bottom:22px;
}

.fshregister-page .fshauth-form .row{
  --bs-gutter-y:.72rem;
}

/* validation */
.fshfield-error{
  display:none;
  margin-top:6px;
  color:var(--auth-danger);
  font-size:13px;
  font-weight:750;
}

.fshfield-error.show{
  display:block;
}

.fshauth-input .form-control.is-invalid{
  border-color:var(--auth-danger);
  background:#FFF8F8;
}

.fshauth-input .form-control.is-invalid:focus{
  border-color:var(--auth-danger);
  box-shadow:0 0 0 4px rgba(220,53,69,.10);
}

/* loading */
.fshbtn-loader{
  display:none;
  width:16px;
  height:16px;
  border:2px solid rgba(255,255,255,.42);
  border-top-color:#fff;
  border-radius:50%;
  animation:fstAuthSpin .75s linear infinite;
}

.js-auth-submit.is-loading .fshbtn-loader{
  display:inline-block;
}

.js-auth-submit.is-loading .js-btn-icon{
  display:none;
}

@keyframes fstAuthSpin{
  to{ transform:rotate(360deg); }
}

/* toast compatibility - handled globally in style.css */


/* Optional plugin compatibility retained */
.fshauth-form .select2-container{ width:100%!important; }

.fshauth-form .select2-container--default .select2-selection--single{
  min-height:49px;
  display:flex;
  align-items:center;
  border:1px solid var(--auth-border);
  border-radius:13px;
  background:#FBFAFC;
}

.fshphone-input,
.fshphone-input .iti{
  width:100%;
}

.fshphone-input .iti__tel-input.form-control,
.fshphone-input .iti input.form-control{
  width:100%;
  min-height:49px;
  border:1px solid var(--auth-border);
  border-radius:13px;
  background:#FBFAFC;
  color:var(--auth-navy);
  font-weight:650;
  padding-left:96px!important;
}

/* responsive */
@media(max-width:991.98px){
  .fshauth-shell-section{
    padding:48px 0 58px;
  }

  .fshauth-shell,
  .fshauth-shell-register{
    grid-template-columns:1fr;
    max-width:720px;
  }

  .fshauth-side,
  .fshregister-page .fshauth-side{
    min-height:auto;
  }

  /* Login and registration stay form-only on phones and tablets. */
  .fshauth-page:not(.fshrecovery-page) .fshauth-side{
    display:none;
  }

  .fshauth-side-inner{
    padding:34px;
  }

  .fshauth-side-note,
  .fshauth-side-quote{
    margin-top:28px;
  }

  .fshauth-panel,
  .fshauth-register-panel{
    padding:34px;
  }
}

@media(max-width:575.98px){
  .fshauth-shell-section{
    padding:32px 0 42px;
  }

  .fshauth-shell{
    border-radius:22px;
  }

  .fshauth-side-inner{
    padding:26px 22px;
  }

  .fshauth-side h1{
    font-size:36px;
    letter-spacing:-1.4px;
  }

  .fshauth-side-text{
    font-size:16px;
  }

  .fshauth-side-grid{
    grid-template-columns:1fr;
  }

  .fshauth-panel,
  .fshauth-register-panel{
    padding:28px 24px;
  }

  .fshauth-panel-top{
    display:block;
    margin-bottom:26px;
  }

  /* The account switch is repeated below the form, so keep the mobile header focused. */
  .fshauth-switch-top{
    display:none;
  }

  .fshauth-panel-icon{
    width:44px;
    height:44px;
    flex-basis:44px;
    margin-bottom:13px;
    border-radius:13px;
    font-size:16px;
  }

  .fshauth-mini-label{
    margin-bottom:5px;
    font-size:10px;
    letter-spacing:1px;
  }

  .fshauth-panel h2{
    font-size:25px;
    line-height:1.16;
    letter-spacing:-.45px;
  }

  .fshauth-panel-top p{
    margin-top:6px;
    font-size:15px;
    line-height:1.45;
  }

  .fshauth-form .form-label{
    margin-bottom:8px;
    font-size:15px;
  }

  .fshauth-input .form-control{
    min-height:52px;
    padding-left:42px;
    padding-right:40px;
    font-size:16px;
  }

  .fshauth-input .form-control::placeholder{
    font-size:15px;
  }

  .fshauth-switch{
    gap:6px;
    margin-top:22px;
    padding-top:18px;
    font-size:15px;
  }

  .fshauth-switch a{
    font-size:16px;
  }

  .fshauth-label-row{
    align-items:flex-start;
  }
}


/* ============================================================
   FORGOT PASSWORD / ACCOUNT RECOVERY
============================================================ */

.fshauth-shell-recovery{
  grid-template-columns:minmax(0,1fr) minmax(430px,.82fr);
}

.fshrecovery-page .fshauth-side{
  min-height:620px;
}

.fshrecovery-steps{
  display:grid;
  gap:16px;
  margin-top:30px;
}

.fshrecovery-step{
  position:relative;

  display:grid;
  grid-template-columns:38px 1fr;
  gap:12px;
  align-items:center;

  padding:14px;

  border:1px solid rgba(255,255,255,.09);
  border-radius:15px;

  background:rgba(255,255,255,.05);

  opacity:.64;

  transition:.22s ease;
}

.fshrecovery-step > span{
  width:38px;
  height:38px;

  display:grid;
  place-items:center;

  border-radius:11px;

  color:rgba(255,255,255,.72);

  background:rgba(255,255,255,.08);

  font-size:9px;
  font-weight:900;
  letter-spacing:.5px;
}

.fshrecovery-step strong,
.fshrecovery-step small{
  display:block;
}

.fshrecovery-step strong{
  color:#fff;

  font-size:11.5px;
  line-height:1.3;
}

.fshrecovery-step small{
  margin-top:3px;

  color:rgba(255,255,255,.52);

  font-size:9.5px;
  line-height:1.4;
}

.fshrecovery-step.is-active{
  opacity:1;

  border-color:rgba(240,229,237,.23);

  background:rgba(255,255,255,.09);
}

.fshrecovery-step.is-active > span{
  color:#19243A;

  background:#F0E5ED;
}

.fshrecovery-step.is-complete{
  opacity:.82;
}

.fshrecovery-step.is-complete > span{
  color:#fff;

  background:#4F329A;
}

.fshrecovery-panel{
  align-self:center;
}

.fshresend-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;

  padding:0;

  border:0;
  background:transparent;

  color:#4F329A;

  font-size:10.5px;
  line-height:1.2;
  font-weight:900;

  cursor:pointer;
}

.fshresend-btn:hover{
  color:#19243A;
}

.fshresend-btn.is-disabled{
  color:#A5A3AD;

  cursor:not-allowed;
}

.fshotp-input{
  letter-spacing:4px;

  font-size:15px!important;
  font-weight:850!important;
}

.fshinput-readonly{
  color:#747490!important;
  background:#F3F1F5!important;

  cursor:not-allowed;
}

.fshrecovery-help{
  display:flex;
  align-items:flex-start;
  gap:9px;

  margin-top:18px;
  padding:12px 13px;

  border:1px solid #E7E5EE;
  border-radius:13px;

  color:#747490;

  background:#F9F8FA;

  font-size:10.5px;
  line-height:1.5;
}

.fshrecovery-help > i{
  color:#4F329A;

  margin-top:2px;
}


/* Mobile */
@media(max-width:991.98px){

  .fshauth-shell-recovery{
    grid-template-columns:1fr;
  }

  .fshrecovery-page .fshauth-side{
    min-height:auto;
  }

}


@media(max-width:575.98px){

  .fshrecovery-step{
    padding:12px;
  }

  .fshrecovery-panel{
    padding:26px 20px;
  }

}

