/* Auth modal — glassmorphism login matching FLAITOPS landing */
.auth-modal{
  position:fixed;
  inset:0;
  z-index:130;
  display:grid;
  place-items:center;
  padding:max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.auth-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,10,16,.42);
  backdrop-filter:blur(14px) saturate(1.05);
  -webkit-backdrop-filter:blur(14px) saturate(1.05);
}
.auth-card{
  position:relative;
  width:min(420px, calc(100% - 1.5rem));
  max-height:calc(100dvh - 2rem);
  overflow:auto;
  overflow-x:hidden;
  border:1px solid rgba(238,243,245,.14);
  border-radius:28px;
  padding:1.55rem 1.45rem 1.35rem;
  background:rgba(18,26,32,.38);
  backdrop-filter:blur(28px) saturate(1.15);
  -webkit-backdrop-filter:blur(28px) saturate(1.15);
  box-shadow:
    0 28px 80px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08);
  color:#eef3f5;
  scrollbar-width:thin;
  scrollbar-color:rgba(238,243,245,.18) transparent;
  transition:opacity .3s ease, transform .3s ease;
}
.auth-card::-webkit-scrollbar{
  width:6px;
}
.auth-card::-webkit-scrollbar-track{
  background:transparent;
  margin:14px 0;
}
.auth-card::-webkit-scrollbar-thumb{
  background:rgba(238,243,245,.16);
  border-radius:999px;
  border:1px solid transparent;
  background-clip:padding-box;
}
.auth-card::-webkit-scrollbar-thumb:hover{
  background:rgba(69,255,96,.35);
}
.auth-card::-webkit-scrollbar-button,
.auth-card::-webkit-scrollbar-corner{
  display:none;
  width:0;
  height:0;
}
.auth-modal.is-register .auth-card,
.auth-card.is-register{
  padding:1.25rem 1.25rem 1.1rem;
}
.auth-modal.is-register .auth-form,
.auth-card.is-register .auth-form{
  gap:.62rem;
}
.auth-modal.is-register .auth-field input,
.auth-modal.is-register .auth-field select,
.auth-card.is-register .auth-field input,
.auth-card.is-register .auth-field select{
  height:44px;
  border-radius:14px;
}
.auth-modal.is-register .auth-primary,
.auth-card.is-register .auth-primary{
  height:44px;
}
.auth-modal.is-register .auth-social,
.auth-card.is-register .auth-social{
  height:42px;
}
.auth-modal.is-register .auth-divider,
.auth-card.is-register .auth-divider{
  margin:.85rem 0 .75rem;
}
.auth-modal.is-register .auth-card > #authLead,
.auth-card.is-register > #authLead{
  margin:0 0 .9rem;
}
body.light-theme .auth-card{
  background:rgba(18,26,32,.42);
  color:#eef3f5;
}
.auth-close{
  position:absolute;
  top:.85rem;
  right:.85rem;
  width:34px;
  height:34px;
  border:1px solid rgba(238,243,245,.12);
  border-radius:999px;
  color:rgba(238,243,245,.72);
  background:rgba(8,14,20,.35);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.auth-close:hover{
  color:#eef3f5;
  border-color:rgba(238,243,245,.22);
  background:rgba(8,14,20,.55);
}
.auth-card > .panel-kicker{
  display:inline-block;
  margin:0 0 .55rem;
  color:#45ff60;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.auth-card h2{
  margin:0 0 .35rem;
  font-size:clamp(1.7rem, 4.5vw, 2rem);
  font-weight:650;
  letter-spacing:-.04em;
  color:#eef3f5;
  line-height:1.1;
}
.auth-card.is-register h2,
.auth-modal.is-register .auth-card h2{
  font-size:clamp(1.55rem, 4vw, 1.85rem);
}
.auth-card > p#authLead,
.auth-card > #authLead{
  margin:0 0 1.25rem;
  color:rgba(238,243,245,.78);
  font-size:.92rem;
  font-weight:450;
  line-height:1.4;
}
.auth-step{
  margin:0 0 .35rem;
  color:rgba(139,152,158,.9);
  font-size:.72rem;
  font-weight:650;
  letter-spacing:.04em;
}
.auth-form{
  display:grid;
  gap:.85rem;
}
.auth-field{
  display:grid;
  gap:.38rem;
}
.auth-field > span{
  color:rgba(238,243,245,.78);
  font-size:.78rem;
  font-weight:500;
  letter-spacing:.01em;
}
.auth-field input,
.auth-field select{
  height:48px;
  border:1px solid rgba(238,243,245,.12);
  border-radius:16px;
  color:#eef3f5;
  background:rgba(6,12,18,.48);
  padding:0 1rem;
  outline:none;
  font-size:.92rem;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.light-theme .auth-field input,
body.light-theme .auth-field select{
  background:rgba(6,12,18,.48);
  color:#eef3f5;
}
.auth-field input::placeholder{
  color:rgba(139,152,158,.72);
}
.auth-field input:focus,
.auth-field select:focus{
  border-color:rgba(120,190,255,.72);
  box-shadow:0 0 0 3px rgba(90,170,255,.18);
  background:rgba(6,12,18,.58);
}
.auth-password-wrap{
  position:relative;
  display:grid;
}
.auth-password-wrap input{
  width:100%;
  padding-right:2.9rem;
}
.auth-password-toggle{
  position:absolute;
  top:50%;
  right:.5rem;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:rgba(238,243,245,.55);
  background:transparent;
  cursor:pointer;
}
.auth-password-toggle:hover{
  color:#eef3f5;
  background:rgba(255,255,255,.06);
}
.auth-primary{
  height:48px;
  margin-top:.15rem;
  border:0;
  border-radius:999px;
  color:#041015;
  font-size:.95rem;
  font-weight:700;
  background:#45ff60;
  box-shadow:0 10px 28px rgba(69,255,96,.18);
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.auth-primary:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
  box-shadow:0 14px 34px rgba(69,255,96,.24);
}
.auth-divider{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:1.1rem 0 1rem;
  color:rgba(238,243,245,.55);
  font-size:.78rem;
  font-weight:500;
}
.auth-divider::before,
.auth-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(238,243,245,.14);
}
.auth-socials{
  display:grid;
  gap:.65rem;
}
.auth-social{
  height:46px;
  border:1px solid rgba(238,243,245,.12);
  border-radius:999px;
  color:#eef3f5;
  background:rgba(6,12,18,.4);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  font-size:.88rem;
  font-weight:550;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}
.auth-social:hover{
  border-color:rgba(238,243,245,.22);
  background:rgba(6,12,18,.55);
  transform:translateY(-1px);
}
.auth-social-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  flex:0 0 18px;
}
.auth-secondary{
  display:block;
  width:fit-content;
  margin:1rem auto 0;
  border:0;
  background:transparent;
  color:rgba(238,243,245,.78);
  font-size:.82rem;
  font-weight:500;
  cursor:pointer;
  text-decoration:none;
  transition:color .2s ease;
}
.auth-secondary:hover{
  color:#eef3f5;
  text-decoration:underline;
  text-underline-offset:3px;
  transform:none;
}
#authRecovery.auth-secondary{
  margin-top:1.05rem;
}
.auth-legal{
  margin:.85rem 0 0;
  text-align:center;
  color:rgba(139,152,158,.78);
  font-size:.68rem;
  line-height:1.45;
}
.auth-form-message{
  margin:0;
  padding:.62rem .72rem;
  border-radius:12px;
  font-size:.78rem;
  line-height:1.45;
  font-weight:600;
}
.auth-verify-email,
.auth-account-meta dd{
  color:#eef3f5;
}
.auth-sign-out{
  width:100%;
  margin:0;
  height:46px;
  border:1px solid rgba(238,243,245,.12);
  border-radius:999px;
  color:#eef3f5;
  background:rgba(6,12,18,.4);
  font-weight:600;
}
.auth-sign-out:hover{
  text-decoration:none;
  background:rgba(6,12,18,.55);
}
