/* Auth modal — fixed shell, stacked panels, polished motion */
.auth-overlay{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
  box-sizing:border-box;overflow:hidden;
  background:rgba(8,12,24,.55);
  backdrop-filter:blur(18px) saturate(1.2);-webkit-backdrop-filter:blur(18px) saturate(1.2);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .32s cubic-bezier(.22,1,.36,1),visibility .32s;
}
/* Closed overlay must not steal clicks — children with pe:auto otherwise block plan CTAs (Premium etc.) */
.auth-overlay:not(.active),
.auth-overlay:not(.active) *{
  pointer-events:none !important;
}
.auth-overlay.active{opacity:1;visibility:visible;pointer-events:auto;}
.auth-overlay.is-closing,
.auth-overlay.is-closing *{
  opacity:0;visibility:hidden;pointer-events:none !important;
  transition:opacity .26s ease,visibility .26s;
}
.auth-overlay:not(.auth-overlay--fit){
  align-items:flex-start;justify-content:center;
  padding-top:max(12px,env(safe-area-inset-top,12px));
}
.auth-overlay::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%,rgba(0,113,227,.32),transparent 58%),
    radial-gradient(ellipse 50% 35% at 100% 100%,rgba(52,170,220,.14),transparent 52%);
  opacity:0;transition:opacity .45s ease;
}
.auth-overlay.active::before{opacity:1;}

.auth-modal{
  --auth-w:420px;
  position:relative;flex:0 1 auto;
  width:min(var(--auth-w),100%);max-width:calc(100vw - 24px);
  display:flex;flex-direction:column;box-sizing:border-box;
  padding:22px 22px 18px;
  border-radius:22px;
  background:linear-gradient(160deg,rgba(255,255,255,.97) 0%,rgba(246,249,255,.92) 100%);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:
    0 0 0 .5px rgba(0,113,227,.08),
    0 18px 50px rgba(8,20,50,.18),
    0 40px 100px rgba(0,40,100,.12);
  backdrop-filter:blur(28px) saturate(1.4);-webkit-backdrop-filter:blur(28px) saturate(1.4);
  overflow:hidden;
  opacity:0;transform:translateY(16px) scale(.975);
  transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .26s ease,box-shadow .3s ease;
}
.auth-overlay.active .auth-modal{
  animation:authModalIn .58s cubic-bezier(.16,1,.3,1) forwards;
}
.auth-overlay.active .auth-modal.is-entering .auth-modal-chrome{
  animation:authChromeIn .48s cubic-bezier(.16,1,.3,1) both;
}
.auth-overlay.active .auth-modal.is-entering .auth-modal-body{
  animation:authBodyIn .55s cubic-bezier(.16,1,.3,1) .05s both;
}
.auth-overlay.active .auth-modal.is-closing,
.auth-modal.is-closing{
  animation:authModalOut .26s ease forwards;
}
@keyframes authModalIn{
  0%{opacity:0;transform:translateY(28px) scale(.94);filter:blur(8px);}
  55%{opacity:1;filter:blur(0);}
  100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0);}
}
@keyframes authModalOut{
  from{opacity:1;transform:translateY(0) scale(1);filter:blur(0);}
  to{opacity:0;transform:translateY(12px) scale(.97);filter:blur(4px);}
}
@keyframes authChromeIn{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}
@keyframes authPanelIn{
  from{opacity:0;transform:translateY(14px) scale(.985);}
  to{opacity:1;transform:translateY(0) scale(1);}
}

.auth-modal-grid{
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;overflow:hidden;opacity:.28;
  background-image:
    linear-gradient(rgba(0,113,227,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,113,227,.045) 1px,transparent 1px);
  background-size:24px 24px;
  mask-image:linear-gradient(180deg,#000 0%,transparent 85%);
}
.auth-modal-glow{
  position:absolute;top:-45%;left:-25%;width:150%;height:85%;max-width:100vw;pointer-events:none;
  background:radial-gradient(circle,rgba(0,113,227,.16),transparent 62%);
  animation:authGlow 9s ease-in-out infinite;
  contain:layout paint;
}
.auth-overlay:not(.active) .auth-modal-glow{
  display:none;animation:none;
}
@keyframes authGlow{0%,100%{opacity:.5;transform:translate3d(0,0,0) scale(1);}50%{opacity:.9;transform:translate3d(2%,1%,0) scale(1.03);}}

.auth-modal-close{
  position:absolute;top:12px;right:12px;z-index:4;
  width:34px;height:34px;border-radius:50%;border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.88);color:#86868b;font-size:15px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:transform .22s cubic-bezier(.16,1,.3,1),background .2s ease,color .2s ease,box-shadow .2s ease;
}
.auth-modal-close:hover{
  transform:scale(1.06) rotate(90deg);background:#fff;color:#1d1d1f;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.auth-modal-close:active{transform:scale(.96);}

.auth-modal-chrome{flex:0 0 auto;position:relative;z-index:2;}
.auth-modal-body{
  flex:1 1 auto;min-height:0;
  overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;-ms-overflow-style:none;
  position:relative;z-index:2;
  display:grid;
  align-content:start;
}
.auth-modal-body::-webkit-scrollbar{display:none;width:0;height:0;}

.auth-modal-brand{margin-bottom:12px;}
.auth-brand-lockup .neytom-brand{gap:8px;color:inherit;}
.auth-brand-lockup .auth-brand-word,.auth-brand-lockup .neytom-brand__name{font-size:16px;font-weight:800;letter-spacing:-.04em;}
.auth-brand-lockup{
  display:inline-flex;align-items:center;gap:9px;text-decoration:none;
  transition:opacity .2s ease,transform .2s ease;
}
.auth-brand-lockup:hover{opacity:.88;transform:translateY(-1px);}
.auth-brand-mark{width:26px;height:26px;border-radius:7px;display:block;flex-shrink:0;}
.auth-brand-word{font-size:17px;font-weight:700;letter-spacing:-.04em;color:#1d1d1f;line-height:1;}

.auth-modal-head{margin-bottom:12px;min-height:52px;}
.auth-modal-head h2{
  margin:0 0 4px;font-size:22px;font-weight:800;letter-spacing:-.7px;line-height:1.15;
  min-height:1.15em;color:#1d1d1f;
  transition:opacity .28s cubic-bezier(.16,1,.3,1),transform .28s cubic-bezier(.16,1,.3,1);
}
.auth-modal-head h2.is-swapping{opacity:0;transform:translateY(-8px);}
.auth-modal-head p{
  margin:0;font-size:13px;color:#86868b;line-height:1.4;min-height:1.4em;
  transition:opacity .28s cubic-bezier(.16,1,.3,1),transform .28s cubic-bezier(.16,1,.3,1);
}
.auth-modal-head p.is-swapping{opacity:0;transform:translateY(6px);}

.auth-tabs{
  position:relative;display:flex;gap:0;margin-bottom:12px;padding:4px;border-radius:14px;
  background:rgba(0,113,227,.07);border:1px solid rgba(0,113,227,.1);
  height:44px;align-items:stretch;flex-shrink:0;
}
.auth-tab-glide{
  position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);
  border-radius:11px;pointer-events:none;z-index:0;
  background:linear-gradient(135deg,#0071e3 0%,#0a84ff 55%,#34aadc 100%);
  box-shadow:0 6px 18px rgba(0,113,227,.32),inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .45s cubic-bezier(.16,1,.3,1);
  will-change:transform;
}
.auth-overlay[data-auth-tab="signup"] .auth-tab-glide{transform:translateX(100%);}
.auth-tab{
  flex:1 1 0;min-width:0;height:100%;position:relative;z-index:1;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:0 10px;text-align:center;cursor:pointer;font-weight:700;font-size:13px;line-height:1.2;
  color:#6e6e73;border-radius:11px;border:none;background:transparent;
  box-sizing:border-box;transition:color .3s ease;
}
.auth-tab-ico{flex:0 0 15px;width:15px;height:15px;opacity:.72;transition:opacity .25s ease,transform .3s cubic-bezier(.16,1,.3,1);}
.auth-tab:hover{color:#1d1d1f;}
.auth-tab:hover .auth-tab-ico{opacity:.9;}
.auth-tab.active{color:#fff;background:transparent;box-shadow:none;}
.auth-tab.active .auth-tab-ico{opacity:1;transform:scale(1.06);}

.auth-field-shell{position:relative;margin-bottom:8px;}
.auth-panel .auth-field-shell .field.auth-field-input,
.auth-panel .auth-field-shell .auth-field-input{
  padding:12px 14px 12px 48px;margin-bottom:0;
}
.auth-panel .pass-field-shell .field.pass-field,
.auth-panel .pass-field-shell .pass-field{
  padding:12px 46px 12px 48px;margin-bottom:0;
}
.auth-field-ico{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  z-index:2;width:18px;height:18px;color:#86868b;pointer-events:none;display:inline-flex;
  align-items:center;justify-content:center;
  transition:color .2s ease,transform .25s cubic-bezier(.16,1,.3,1);
}
.auth-field-shell:focus-within .auth-field-ico{color:#0071e3;transform:translateY(-50%) scale(1.06);}

.auth-inbox-state .auth-inbox-ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:52px;height:52px;margin:0 auto 10px;border-radius:16px;
  color:#0071e3;background:rgba(0,113,227,.1);border:1px solid rgba(0,113,227,.18);
}
/* Promo always reserves height so login/signup shell matches */
.auth-promo-pill{
  display:block;margin:0 0 10px;padding:8px 12px;border-radius:11px;
  font-size:12px;font-weight:700;line-height:1.35;text-align:center;
  color:#0a3d7a;background:linear-gradient(135deg,rgba(0,113,227,.12),rgba(52,170,220,.1));
  border:1px solid rgba(0,113,227,.2);
  min-height:2.55em;box-sizing:border-box;
  opacity:0;visibility:hidden;transform:translateY(-4px);
  transition:opacity .32s cubic-bezier(.16,1,.3,1),transform .32s cubic-bezier(.16,1,.3,1),visibility .32s;
  pointer-events:none;
}
.auth-overlay[data-auth-tab="signup"] .auth-promo-pill{
  opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;
}

/* Stacked panels = same shell height */
.auth-panel{
  grid-area:1 / 1;
  display:block;
  width:100%;
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateX(14px);
  transition:
    opacity .36s cubic-bezier(.16,1,.3,1),
    transform .42s cubic-bezier(.16,1,.3,1),
    visibility .36s;
  z-index:0;
}
.auth-overlay[data-auth-tab="login"] #panel-signup{transform:translateX(18px);}
.auth-overlay[data-auth-tab="signup"] #panel-login{transform:translateX(-18px);}
.auth-panel.active{
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translateX(0)!important;
  z-index:1;
}
.auth-panel.active.auth-panel--enter-right,
.auth-panel.active.auth-panel--enter-left{
  animation:none;
}

.auth-panel.active .btn-google,
.auth-panel.active .auth-or,
.auth-panel.active .field,
.auth-panel.active .pass-wrap,
.auth-panel.active .remember-wrap,
.auth-panel.active .submit-btn,
.auth-panel.active .switch-link,
.auth-panel.active .alert,
.auth-panel.active .auth-inbox-state,
.auth-panel.active a[href="/forgot_password.php"]{
  animation:authFieldIn .4s cubic-bezier(.16,1,.3,1) both;
}
.auth-panel.active .btn-google{animation-delay:.03s;}
.auth-panel.active .auth-or{animation-delay:.06s;}
.auth-panel.active .field:nth-of-type(1),
.auth-panel.active form .field:nth-of-type(1){animation-delay:.08s;}
.auth-panel.active .field:nth-of-type(2),
.auth-panel.active form .field:nth-of-type(2){animation-delay:.12s;}
.auth-panel.active .field:nth-of-type(3),
.auth-panel.active form .field:nth-of-type(3){animation-delay:.16s;}
.auth-panel.active .field:nth-of-type(4),
.auth-panel.active form .field:nth-of-type(4){animation-delay:.2s;}
.auth-panel.active .field:nth-of-type(5),
.auth-panel.active form .field:nth-of-type(5){animation-delay:.24s;}
.auth-panel.active .pass-wrap:nth-of-type(1){animation-delay:.22s;}
.auth-panel.active .pass-wrap:nth-of-type(2){animation-delay:.26s;}
.auth-panel.active .remember-wrap{animation-delay:.18s;}
.auth-panel.active .submit-btn{animation-delay:.28s;}
.auth-panel.active .switch-link,
.auth-panel.active a[href="/forgot_password.php"]{animation-delay:.32s;}
@keyframes authFieldIn{
  from{opacity:0;transform:translateY(8px);}
  to{opacity:1;transform:translateY(0);}
}

.auth-panel .field{
  width:100%;padding:12px 14px;margin-bottom:8px;
  border:1px solid rgba(0,113,227,.14);border-radius:12px;font-size:15px;
  background:rgba(255,255,255,.78);color:#1d1d1f;outline:none;box-sizing:border-box;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,transform .2s ease;
}
.auth-panel .field:focus{
  border-color:rgba(0,113,227,.55);background:#fff;
  box-shadow:0 0 0 4px rgba(0,113,227,.12);
}
.auth-panel .submit-btn{
  width:100%;padding:12px;margin-top:4px;border:none;border-radius:12px;
  font-size:15px;font-weight:700;cursor:pointer;color:#fff;
  background:linear-gradient(135deg,#0071e3,#0058b0);
  box-shadow:0 6px 18px rgba(0,113,227,.22);
  transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s ease,filter .2s ease;
}
.auth-panel .submit-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,113,227,.3);}
.auth-panel .submit-btn:active{transform:translateY(0) scale(.99);}
.auth-panel .submit-btn.dark{background:linear-gradient(135deg,#1d1d1f,#3a3a3c);box-shadow:0 6px 18px rgba(0,0,0,.18);}
.auth-panel .btn-google{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  padding:11px 14px;border:1px solid rgba(0,113,227,.16);border-radius:12px;
  background:rgba(255,255,255,.88);font-weight:600;font-size:13px;color:#1d1d1f;
  text-decoration:none;margin-bottom:8px;box-sizing:border-box;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.auth-panel .btn-google:hover{transform:translateY(-1px);border-color:rgba(0,113,227,.32);box-shadow:0 6px 16px rgba(0,0,0,.06);}
.auth-or{display:flex;align-items:center;gap:8px;margin:4px 0 10px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#86868b;}
.auth-or span{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(0,113,227,.22),transparent);}
.auth-panel .alert{border-radius:11px;font-size:11px;margin-bottom:8px;padding:9px 11px;line-height:1.35;}
.auth-panel .remember-wrap{margin:8px 0 10px;font-size:12px;color:#86868b;}
.remember-label{
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none;
  transition:color .2s ease;
}
.remember-label:hover{color:#1d1d1f;}
.remember-label input{
  position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;
}
.remember-box{
  position:relative;flex:0 0 auto;width:20px;height:20px;border-radius:6px;
  border:1.5px solid rgba(0,113,227,.28);background:rgba(255,255,255,.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  transition:border-color .22s ease,background .22s ease,box-shadow .22s ease,transform .22s cubic-bezier(.16,1,.3,1);
}
.remember-box::after{
  content:'';position:absolute;left:6px;top:2px;width:5px;height:10px;
  border:solid #fff;border-width:0 2px 2px 0;transform:scale(0) rotate(45deg);
  transition:transform .22s cubic-bezier(.16,1,.3,1);
}
.remember-label input:checked + .remember-box{
  background:linear-gradient(135deg,#0071e3,#0a84ff);border-color:transparent;
  box-shadow:0 4px 12px rgba(0,113,227,.28);transform:scale(1.04);
}
.remember-label input:checked + .remember-box::after{transform:scale(1) rotate(45deg);}
.remember-label input:focus-visible + .remember-box{box-shadow:0 0 0 4px rgba(0,113,227,.18);}
.remember-label.is-pulse .remember-box{animation:rememberPulse .35s cubic-bezier(.16,1,.3,1);}
@keyframes rememberPulse{
  0%{transform:scale(1);}
  40%{transform:scale(1.12);}
  100%{transform:scale(1.04);}
}
.auth-panel .switch-link{text-align:center;margin-top:10px;font-size:12px;color:#86868b;}
.auth-panel .switch-link a{color:#0071e3;cursor:pointer;font-weight:700;text-decoration:none;}
.auth-panel .switch-link a:hover{text-decoration:underline;}
/* Password field: lock left, eye toggle flush right */
.pass-wrap{position:relative;margin-bottom:8px;}
.pass-field-shell{
  position:relative;display:block;
  border-radius:12px;
  transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s ease;
}
.pass-field-shell--plain .pass-field{padding-left:14px;}
.pass-field-shell .pass-field{
  display:block;width:100%;margin-bottom:0;
  padding-left:48px;padding-right:46px;
  letter-spacing:.02em;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,letter-spacing .18s ease,transform .12s ease;
}
.pass-lock{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  z-index:2;line-height:0;pointer-events:none;color:#86868b;
  display:inline-flex;align-items:center;justify-content:center;
  transition:transform .2s cubic-bezier(.16,1,.3,1),color .2s ease,filter .2s ease;
}
.pass-lock .pass-lock-ico{display:block;}
.pass-lock.secure,
.pass-lock[data-state="secure"]{color:#34c759;filter:drop-shadow(0 0 4px rgba(52,199,89,.45));}
.pass-lock.unlocked,
.pass-lock[data-state="unlocked"]{color:#ff9500;filter:drop-shadow(0 0 4px rgba(255,149,0,.35));}
.pass-lock.is-tick{animation:passLockTick .28s cubic-bezier(.16,1,.3,1);}
@keyframes passLockTick{
  0%{transform:translateY(-50%) scale(1);}
  40%{transform:translateY(-58%) scale(1.18);}
  100%{transform:translateY(-50%) scale(1);}
}
.pass-toggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  z-index:3;width:34px;height:34px;padding:0;margin:0;
  display:inline-flex;align-items:center;justify-content:center;
  border:0;border-radius:10px;background:transparent;color:#86868b;
  cursor:pointer;
  transition:color .2s ease,background .2s ease,transform .2s cubic-bezier(.16,1,.3,1);
}
.pass-toggle:hover{color:#0071e3;background:rgba(0,113,227,.08);}
.pass-toggle:active{transform:translateY(-50%) scale(.92);}
.pass-toggle .pass-ico{display:block;pointer-events:none;}
.pass-toggle .pass-ico--eye-off{display:none;}
.pass-toggle.is-shown{color:#0071e3;}
.pass-toggle.is-shown .pass-ico--eye{display:none;}
.pass-toggle.is-shown .pass-ico--eye-off{display:block;}
.pass-toggle.is-flip{animation:passEyeFlip .32s cubic-bezier(.16,1,.3,1);}
@keyframes passEyeFlip{
  0%{transform:translateY(-50%) scale(1) rotateY(0);}
  45%{transform:translateY(-50%) scale(.86) rotateY(90deg);}
  100%{transform:translateY(-50%) scale(1) rotateY(0);}
}

/* Typing feedback */
.pass-field-shell.is-typing{
  transform:scale(1.008);
  box-shadow:0 0 0 3px rgba(0,113,227,.14);
}
.pass-field-shell.is-typing .pass-field{
  letter-spacing:.08em;
  border-color:rgba(0,113,227,.5);
}
.pass-field-shell::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(0,113,227,.16),transparent);
  opacity:0;transform:translateX(-40%);
}
.pass-wrap.scanning .pass-field-shell::after{
  animation:passScan .38s cubic-bezier(.16,1,.3,1);
}
@keyframes passScan{
  0%{opacity:0;transform:translateX(-45%);}
  35%{opacity:1;}
  100%{opacity:0;transform:translateX(45%);}
}
.pass-strength-bar{
  height:3px;margin-top:6px;border-radius:99px;overflow:hidden;
  background:rgba(0,113,227,.08);
}
.pass-bar{
  height:100%;width:0;border-radius:inherit;
  transition:width .35s cubic-bezier(.16,1,.3,1),background .25s ease;
}
#panel-signup .pass-str-label{display:none;}
#panel-signup .pass-strength-bar{height:3px;margin-top:5px;}
#panel-signup .pass-wrap{margin-bottom:6px;}
.auth-modal--compact .pass-field-shell .pass-field{padding:10px 40px 10px 40px;}
.auth-modal--compact .auth-panel .auth-field-shell .auth-field-input,
.auth-modal--compact .auth-panel .auth-field-shell .field.auth-field-input{
  padding:10px 12px 10px 40px;margin-bottom:0;font-size:14px;
}
.auth-modal--compact .auth-panel .pass-field-shell .pass-field,
.auth-modal--compact .auth-panel .pass-field-shell .field.pass-field{
  padding:10px 40px 10px 40px;margin-bottom:0;font-size:14px;
}
.auth-modal--compact .pass-lock{left:10px;font-size:14px;}
.auth-modal--compact .pass-toggle{right:4px;width:32px;height:32px;}
.auth-inbox-state{padding:8px 0;text-align:center;}
.auth-inbox-state .auth-inbox-ico{font-size:32px;margin-bottom:6px;animation:authInboxPop .55s cubic-bezier(.16,1,.3,1) both;}
@keyframes authInboxPop{
  from{opacity:0;transform:scale(.72);}
  to{opacity:1;transform:scale(1);}
}
.auth-inbox-state h3{font-size:17px;margin:0 0 6px;font-weight:800;}
.auth-inbox-state p{font-size:12px;margin:0 0 8px;color:#515154;}
.auth-inbox-state--verified .auth-inbox-ico--ok{
  display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;
  background:linear-gradient(135deg,#34c759,#30d158);color:#fff;font-size:26px;font-weight:800;
  animation:authSuccessPop .55s cubic-bezier(.16,1,.3,1) both;
}
.auth-success-overlay{
  position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-radius:inherit;text-align:center;padding:24px;
  animation:authModalIn .4s cubic-bezier(.16,1,.3,1) both;
}
.auth-success-overlay.is-login .auth-success-check{
  background:linear-gradient(135deg,#0071e3,#0a84ff);
}
.auth-success-overlay.is-login .auth-success-ring{
  border-color:rgba(0,113,227,.28);
}
.auth-modal.is-login-ok{
  animation:authLoginPulse .55s cubic-bezier(.16,1,.3,1);
}
@keyframes authLoginPulse{
  0%{transform:scale(1);}
  40%{transform:scale(1.02);}
  100%{transform:scale(1);}
}
.auth-login-btn.is-loading{
  position:relative;pointer-events:none;letter-spacing:.02em;
  background:linear-gradient(135deg,#0071e3,#34aadc)!important;
  animation:authBtnShimmer 1.1s ease infinite;
}
@keyframes authBtnShimmer{
  0%,100%{filter:brightness(1);}
  50%{filter:brightness(1.12);}
}
.auth-success-overlay[hidden]{display:none!important;}
.auth-modal--success .auth-modal-chrome,
.auth-modal--success .auth-modal-body{visibility:hidden;}
.auth-success-ring{
  position:absolute;width:72px;height:72px;border-radius:50%;
  border:3px solid rgba(52,199,89,.25);animation:authRingPulse 1.2s ease-out infinite;
}
.auth-success-check{
  position:relative;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#34c759,#30d158);color:#fff;font-size:28px;font-weight:800;
  animation:authSuccessPop .55s cubic-bezier(.16,1,.3,1) both;
}
.auth-success-title{margin:14px 0 4px;font-size:17px;font-weight:800;color:#1d1d1f;}
.auth-success-sub{margin:0;font-size:12px;color:#86868b;}
@keyframes authSuccessPop{
  from{opacity:0;transform:scale(.5);}
  to{opacity:1;transform:scale(1);}
}
@keyframes authRingPulse{
  0%{transform:scale(.85);opacity:1;}
  100%{transform:scale(1.35);opacity:0;}
}
body.auth-modal-open{overflow:hidden;}
.auth-modal--compact .auth-modal-brand{display:none;}
.auth-modal--compact .auth-modal-head{margin-bottom:6px;min-height:auto;}
.auth-modal--compact .auth-modal-head h2{font-size:18px;margin-bottom:2px;}
.auth-modal--compact .auth-modal-head p{display:none;}
.auth-modal--compact .auth-promo-pill{margin-bottom:8px;padding:7px 10px;font-size:11px;min-height:0;}
.auth-modal--compact .auth-tabs{height:40px;margin-bottom:8px;flex-shrink:0;display:flex;}
.auth-modal--compact .auth-tab{font-size:12px;}
.auth-modal--compact .auth-panel .field{padding:10px 12px;margin-bottom:6px;font-size:14px;}
.auth-modal--compact .auth-panel .auth-field-shell .field,
.auth-modal--compact .auth-panel .auth-field-shell .auth-field-input{
  padding:10px 12px 10px 40px;margin-bottom:0;
}
.auth-modal--compact .auth-panel .pass-field-shell .field,
.auth-modal--compact .auth-panel .pass-field-shell .pass-field{
  padding:10px 40px 10px 40px;margin-bottom:0;
}
@media(max-height:520px){
  .auth-modal--compact .auth-promo-pill{display:none;}
  .auth-modal--compact .auth-modal-head{margin-bottom:4px;}
  .auth-modal--compact .auth-tabs{margin-bottom:6px;}
}
body.mobile-nav-open{overflow:hidden;}
body.auth-modal-open.mobile-nav-open{overflow:hidden;}

@media(max-width:768px){
  .auth-modal{
    width:calc(100vw - 16px);max-width:calc(100vw - 16px);
    border-radius:18px;padding:14px 14px 12px;
  }
  .auth-modal-close{top:10px;right:10px;}
  .auth-modal-body{min-height:0;-webkit-overflow-scrolling:touch;}
  .auth-panel .field{font-size:16px;padding:11px 13px;margin-bottom:6px;}
  .auth-panel .auth-field-shell .field,
  .auth-panel .auth-field-shell .auth-field-input{padding:11px 13px 11px 42px;margin-bottom:0;}
  .auth-panel .pass-field-shell .field,
  .auth-panel .pass-field-shell .pass-field{padding:11px 42px 11px 42px;margin-bottom:0;}
  .auth-panel .pass-wrap{margin-bottom:5px;}
  .auth-panel .submit-btn{padding:11px;margin-top:2px;}
  .auth-panel .btn-google{padding:10px 12px;margin-bottom:6px;}
  .auth-panel .switch-link{margin-top:8px;}
  .auth-overlay:not(.auth-overlay--fit){padding-top:max(8px,env(safe-area-inset-top,8px));align-items:flex-start;}
  .auth-overlay.auth-overlay--fit{align-items:center;}
  .auth-tabs{height:40px;margin-bottom:8px;}
  .auth-tab{font-size:13px;}
  .auth-modal-head{min-height:auto;margin-bottom:6px;}
  .auth-modal-head h2{font-size:18px;margin-bottom:2px;}
  .auth-promo-pill{font-size:11px;padding:7px 10px;margin-bottom:8px;}
}
@media(max-width:380px){
  .auth-modal-head h2{font-size:18px;}
  .auth-tabs{height:40px;}
  .auth-tab{font-size:12px;}
}
@media(prefers-reduced-motion:reduce){
  .auth-overlay,.auth-modal,.auth-panel,.auth-promo-pill,.auth-tab-glide,.auth-modal-close,
  .auth-modal-head h2,.auth-modal-head p,.pass-field-shell,.pass-toggle,.pass-lock{transition:none!important;animation:none!important;}
  .auth-overlay.active .auth-modal,
  .auth-overlay.active .auth-modal.is-entering .auth-modal-chrome,
  .auth-overlay.active .auth-modal.is-entering .auth-modal-body,
  .auth-panel.active .field,
  .auth-panel.active .btn-google,
  .auth-panel.active .submit-btn,
  .auth-inbox-state .auth-inbox-ico{animation:none!important;opacity:1;transform:none;filter:none;}
  .auth-success-overlay,.auth-success-check,.auth-success-ring,.auth-modal-glow,
  .pass-wrap.scanning .pass-field-shell::after,.pass-lock.is-tick,.pass-toggle.is-flip{animation:none!important;}
  .pass-field-shell.is-typing{transform:none;box-shadow:none;}
  .auth-panel{opacity:0;visibility:hidden;}
  .auth-panel.active{opacity:1;visibility:visible;transform:none!important;}
}

.auth-signup-step{display:contents;}
.auth-signup-next,
.auth-signup-back{display:none;}
.auth-signup-back{
  width:100%;margin:0 0 8px;padding:8px 0;border:0;background:transparent;
  font-size:12px;font-weight:600;color:#86868b;text-align:left;cursor:pointer;
}
.auth-modal--compact .auth-signup-step{display:none;}
.auth-modal--compact .auth-signup-step.is-active{display:block;}
.auth-modal--compact .auth-signup-next{display:block;margin-top:10px;}
.auth-modal--compact .auth-signup-back{display:block;}
.auth-modal--compact #authSignupForm[data-signup-step="1"] .auth-signup-step[data-signup-step="2"]{display:none;}
.auth-modal--compact #authSignupForm[data-signup-step="2"] .auth-signup-step[data-signup-step="1"]{display:none;}

/* Beat neytom-motion.css duplicate open animation when both load */
body.auth-modal-open .auth-overlay.active .auth-modal{
  animation:authModalIn .5s cubic-bezier(.16,1,.3,1) forwards;
}

/* Human Capsule — always compact density (no brand / subtitle / phone / confirm) */
.auth-overlay--humans .auth-modal-brand{display:none!important;}
.auth-overlay--humans #authModalSub{display:none!important;}
.auth-overlay--humans .auth-modal-head{margin-bottom:6px;min-height:auto;}
.auth-overlay--humans .auth-modal-head h2{font-size:18px;margin-bottom:2px;}
.auth-overlay--humans .auth-promo-pill{margin-bottom:8px;padding:7px 10px;font-size:11px;min-height:0;}
.auth-overlay--humans .auth-tabs{height:40px;margin-bottom:8px;}
.auth-overlay--humans .auth-tab{font-size:12px;}
.auth-overlay--humans .auth-modal{
  --auth-w:400px;
  padding:16px 16px 14px;
}
.auth-overlay--humans .auth-panel .field{padding:10px 12px;margin-bottom:6px;font-size:14px;}
.auth-overlay--humans .auth-panel .auth-field-shell .field,
.auth-overlay--humans .auth-panel .auth-field-shell .auth-field-input{
  padding:10px 12px 10px 40px;margin-bottom:0;
}
.auth-overlay--humans .auth-panel .pass-field-shell .field,
.auth-overlay--humans .auth-panel .pass-field-shell .pass-field{
  padding:10px 40px 10px 40px;margin-bottom:0;
}
.auth-overlay--humans .auth-signup-step--single{display:block!important;}
.auth-overlay--humans .auth-signup-next,
.auth-overlay--humans .auth-signup-back{display:none!important;}
.auth-overlay--humans .pass-strength-bar,
.auth-overlay--humans .pass-str-label{display:none!important;}
.auth-overlay--humans .pass-wrap{margin-bottom:6px;}
.auth-overlay--humans .submit-btn.dark{margin-top:4px;}
@media(max-height:520px){
  .auth-overlay--humans .auth-promo-pill{display:none;}
}
