html.swd-guest-html,
html.swd-guest-html body{ height:100% !important; min-height:100% !important; }
html:has(.swd-auth),
html:has(.swd-auth) body,
body:has(.swd-auth),
body.swd-guest-view{ margin:0 !important; padding:0 !important; height:100vh !important; height:100dvh !important; min-height:100vh !important; min-height:100dvh !important; overflow:hidden !important; width:100% !important; max-width:100% !important; }
body.swd-guest-view > *:not(.swd-auth):not(.swd-guest-html),
body:has(.swd-auth) > *:not(.swd-auth):not(.swd-guest-html),
body.swd-guest-view header,
body.swd-guest-view footer,
body.swd-guest-view aside,
body.swd-guest-view nav,
body.swd-guest-view .elementor-location-header,
body.swd-guest-view .elementor-location-footer,
body.swd-guest-view .elementor-location-single,
body.swd-guest-view .elementor-section,
body.swd-guest-view .site-header,
body.swd-guest-view .site-footer,
body.swd-guest-view .site-sidebar,
body.swd-guest-view .sidebar,
body.swd-guest-view .widget-area,
body.swd-guest-view .avada-row,
body.swd-guest-view .fusion-header,
body.swd-guest-view .fusion-footer,
body.swd-guest-view .fusion-sidebar,
body.swd-guest-view .fusion-page-title-bar,
body.swd-guest-view #wpadminbar{ display:none !important; }
body.swd-guest-view .swd-auth{ position:fixed !important; inset:0 !important; z-index:999999 !important; }
body:has(.swd-auth) > *:not(.swd-auth),
body:has(.swd-auth) header,
body:has(.swd-auth) footer,
body:has(.swd-auth) aside,
body:has(.swd-auth) nav,
body:has(.swd-auth) .elementor-location-header,
body:has(.swd-auth) .elementor-location-footer,
body:has(.swd-auth) .elementor-location-single,
body:has(.swd-auth) .elementor-section,
body:has(.swd-auth) .site-header,
body:has(.swd-auth) .site-footer,
body:has(.swd-auth) .site-sidebar,
body:has(.swd-auth) .sidebar,
body:has(.swd-auth) .widget-area,
body:has(.swd-auth) .avada-row,
body:has(.swd-auth) .fusion-header,
body:has(.swd-auth) .fusion-footer,
body:has(.swd-auth) .fusion-sidebar,
body:has(.swd-auth) .fusion-page-title-bar,
body:has(.swd-auth) #wpadminbar{ display:none !important; }
.swd-auth, .swd-auth *, .swd-auth *::before, .swd-auth *::after{ font-family: var(--swd-auth-font, 'Vazirmatn RD', system-ui, sans-serif) !important; box-sizing:border-box; -webkit-tap-highlight-color:transparent; letter-spacing:normal !important; word-spacing:normal !important; text-transform:none !important; text-shadow:none !important; }
.swd-auth{ letter-spacing:normal !important; word-spacing:normal !important; text-transform:none !important; text-shadow:none !important; }
.swd-auth{
  --brand: var(--swd-auth-brand, #7ae2cf);
  --brand-deep: var(--swd-auth-brand-deep, #5cb8a3);
  --brand-soft: color-mix(in srgb, var(--swd-auth-brand, #7ae2cf) 18%, transparent);
  --text: var(--swd-auth-text, #1e293b);
  --text-muted: var(--swd-auth-text-muted, #64748b);
  --text-on-brand: var(--swd-auth-text-on-brand, #ffffff);
  position:fixed !important; inset:0 !important; z-index:999999 !important;
  min-height:100vh; min-height:100dvh; height:100%;
  display:grid !important; place-items:center !important;
  direction:rtl; overflow:auto; padding:24px 16px;
  scrollbar-width:none; -ms-overflow-style:none;
  background:var(--swd-auth-page-bg, #000000);
  font-size:var(--swd-fs, 15px); line-height:1.6; -webkit-font-smoothing:antialiased;
}
.swd-auth::-webkit-scrollbar{ display:none !important; width:0 !important; height:0 !important; }

.swd-auth-shape{
  position:absolute; top:50%; right:42%; width:640px; height:640px; border-radius:50%;
  background: radial-gradient(circle, var(--swd-auth-brand, #7ae2cf) 0%, var(--swd-auth-shape-deep, #000000) 60%, transparent 100%);
  transform:translate(50%, -50%);
  opacity:.55;
  z-index:0;
}
.swd-auth-shape-blur{ filter:blur(80px); }
.swd-auth-shape-solid{ opacity:.18; z-index:0; }

.swd-auth-card{
  position:relative; z-index:2; width:100%; max-width:440px;
  margin:auto;
  background:var(--swd-auth-card-bg, rgba(255,255,255,0.08));
  backdrop-filter:blur(28px) saturate(1.4);
  -webkit-backdrop-filter:blur(28px) saturate(1.4);
  border:1px solid var(--swd-auth-card-border, rgba(255,255,255,0.14));
  border-radius:28px;
  padding:36px 32px 32px;
  box-shadow:0 30px 80px -24px var(--swd-auth-card-shadow, rgba(0,0,0,0.6)), inset 0 1px 0 var(--swd-auth-card-border-inner, rgba(255,255,255,0.1));
  animation:swd-auth-in .7s cubic-bezier(.22,1,.36,1);
  max-height:calc(100dvh - 48px); overflow-y:auto;
  scrollbar-width:none; -ms-overflow-style:none;
}
.swd-auth-card::-webkit-scrollbar{ display:none !important; width:0 !important; height:0 !important; }
@keyframes swd-auth-in{ from{opacity:0; transform:translateY(28px) scale(.95);} to{opacity:1; transform:none;} }
.swd-auth-head{ text-align:center; margin-bottom:24px; }
.swd-auth-head h2{ margin:0 0 4px; font-size:var(--fs-auth-title, 24px); font-weight: var(--fw-auth-title, 900); color:var(--text); }
.swd-auth-head p{ margin:0; font-size:var(--fs-auth-body, 14px); color:var(--swd-auth-sub, color-mix(in srgb, var(--text-muted) 50%, transparent)); font-weight:var(--fw-auth-body, 600);}
.swd-auth-tabs{ position:relative; display:grid; grid-template-columns:1fr 1fr; gap:0; margin-bottom:22px; padding:5px; border-radius:16px; background:color-mix(in srgb, var(--text-muted) 6%, transparent); border:1px solid color-mix(in srgb, var(--text-muted) 8%, transparent); }
.swd-auth-tab-bg{ position:absolute; top:5px; bottom:5px; right:5px; width:calc(50% - 5px); border-radius:12px; background:linear-gradient(135deg, var(--swd-auth-brand, #7ae2cf), var(--swd-auth-brand-deep, #5cb8a3)); transition:transform .45s cubic-bezier(.22,1,.36,1); z-index:0; box-shadow:0 8px 20px -8px var(--swd-auth-brand, #7ae2cf); }
.swd-auth-tab{ position:relative; z-index:1; background:transparent; border:none; cursor:pointer; padding:11px 0; font-weight: var(--fw-auth-tab, 800); font-size:var(--fs-auth-tab, 14px); color:var(--swd-auth-tab, color-mix(in srgb, var(--text-muted) 45%, transparent)); transition:color .35s; }
.swd-auth-tab.is-active{ color:var(--text-on-brand); }
.swd-auth-form{ display:none; flex-direction:column; gap:14px; opacity:0; transform:translateY(8px); transition:opacity .4s, transform .4s; }
.swd-auth-form.is-active{ display:flex; opacity:1; transform:none; animation:swd-form-in .45s cubic-bezier(.22,1,.36,1); }
@keyframes swd-form-in{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:none;} }
.swd-auth-field{ position:relative; }
.swd-auth-field input{
  width:100%; height:54px; padding:22px 16px 10px;
  border:1px solid var(--swd-auth-input-border, rgba(255,255,255,0.12)); border-radius:14px !important;
  background:var(--swd-auth-input-bg, rgba(255,255,255,0.05)); color:var(--swd-auth-input-text, var(--swd-auth-text, #123)); font-size:var(--fs-auth-input, 15px); outline:none;
  transition:border-color .3s, box-shadow .3s, background .3s; font-weight:var(--fw-auth-input, 600);}
.swd-auth-field input:focus{ border-color:var(--swd-auth-brand, #7ae2cf); box-shadow:0 0 0 4px var(--brand-soft); background:var(--swd-auth-input-bg-focus, rgba(255,255,255,0.07)); color:var(--swd-auth-input-focus, var(--swd-auth-input-text, var(--swd-auth-text, #123))); }
.swd-auth-field input::placeholder{ color:var(--swd-auth-placeholder, color-mix(in srgb, var(--swd-auth-text-muted, #64748b) 50%, transparent)); }
.swd-auth-field label{ position:absolute; right:16px; top:50%; transform:translateY(-50%); color:var(--swd-auth-label, color-mix(in srgb, var(--text-muted) 40%, transparent)); font-size:var(--fs-auth-label, 14px); pointer-events:none; transition:all .25s; font-weight:var(--fw-auth-label, 600);}
.swd-auth-field input:focus + label, .swd-auth-field input:not(:placeholder-shown) + label{ top:10px; transform:translateY(0); font-size:calc(var(--fs-auth-label, 14px) * 0.66); color:var(--brand); font-weight:var(--fw-auth-label, 600);}

.swd-auth-remember{ display:flex; align-items:center; gap:10px; font-size:var(--fs-auth-remember, 13px); color:var(--swd-auth-remember, color-mix(in srgb, var(--text-muted) 50%, transparent)); cursor:pointer; user-select:none; font-weight:var(--fw-auth-remember, 600);}
.swd-auth-remember input[type=checkbox]{
  appearance:none; -webkit-appearance:none; width:20px; height:20px; flex:0 0 auto;
  border:2px solid color-mix(in srgb, var(--text-muted) 20%, transparent); border-radius:6px; cursor:pointer;
  background:var(--swd-auth-input-bg, rgba(255,255,255,0.05)); position:relative; transition:all .3s;
}
.swd-auth-remember input[type=checkbox]:checked{ background:linear-gradient(135deg, var(--swd-auth-brand, #7ae2cf), var(--swd-auth-brand-deep, #5cb8a3)); border-color:var(--swd-auth-brand, #7ae2cf); }
.swd-auth-remember input[type=checkbox]:checked::after{ content:""; position:absolute; right:5px; top:1px; width:5px; height:10px; border:solid var(--text-on-brand); border-width:0 2px 2px 0; transform:rotate(45deg); }
.swd-auth-submit{
  width:100%; height:54px; justify-content:center; font-size:var(--fs-auth-button, 15px); font-weight: var(--fw-auth-button, 800); margin-top:4px;
  border:none; border-radius:14px; cursor:pointer; color:var(--text-on-brand);
  background:linear-gradient(135deg, var(--swd-auth-brand, #7ae2cf), var(--swd-auth-brand-deep, #5cb8a3));
  box-shadow:0 12px 30px -10px var(--swd-auth-brand, #7ae2cf);
  transition:transform .25s, box-shadow .25s; display:flex; align-items:center; gap:8px;
}
.swd-auth-submit:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -12px var(--swd-auth-brand, #7ae2cf); }
.swd-auth-submit.is-loading{ pointer-events:none; opacity:.8; }
.swd-auth-submit.is-loading::after{ content:""; display:inline-block; width:18px; height:18px; border:2px solid var(--swd-auth-text-on-brand-30, rgba(255,255,255,0.3)); border-top-color:var(--text-on-brand); border-radius:50%; animation:swd-spin .7s linear infinite; }
@keyframes swd-spin{ to{ transform:rotate(360deg); } }
.swd-auth-msg{ margin-top:14px; padding:11px 14px; border-radius:12px; font-weight: var(--fw-auth-msg, 700); font-size:var(--fs-auth-msg, 13px); text-align:center; }
.swd-auth-msg.is-err{ background:var(--swd-auth-error-bg, rgba(239,68,68,0.14)); color:var(--swd-auth-error-color, #ef4444); border:1px solid var(--swd-auth-error-border, rgba(239,68,68,0.35)); }
.swd-auth-msg.is-ok{ background:var(--brand-soft); color:var(--swd-auth-ok, var(--brand)); border:1px solid var(--brand); }
@media(max-width:480px){ .swd-auth-card{ padding:28px 20px 26px; border-radius:22px; } .swd-auth-head h2{ font-size:calc(var(--fs-auth-title, 24px) * 0.87); font-weight:var(--fw-auth-title, 600);} }

@media (prefers-reduced-motion: reduce) {
  .swd-auth *,
  .swd-auth *::before,
  .swd-auth *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .swd-auth-shape-blur,
  .swd-auth-shape-solid,
  .swd-auth {
    animation: none !important;
  }
}

.swd-auth-methods{ display:flex; flex-direction:row; gap:10px; margin:4px 0; }
.swd-auth-method{
  position:relative; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding:16px 10px; border-radius:14px; cursor:pointer; text-align:center;
  border:1.5px solid var(--swd-auth-input-border, rgba(255,255,255,0.12));
  background:var(--swd-auth-input-bg, rgba(255,255,255,0.05));
  transition:all .2s ease;
  user-select:none; -webkit-tap-highlight-color:transparent;
}
.swd-auth-method:hover{ border-color:color-mix(in srgb, var(--swd-auth-brand, #7ae2cf) 50%, var(--swd-auth-input-border, rgba(255,255,255,0.12))); }
.swd-auth-method:active{ transform:scale(.97); }
.swd-auth-method.is-active{
  border-color:var(--swd-auth-brand, #7ae2cf);
  background:color-mix(in srgb, var(--swd-auth-brand, #7ae2cf) 10%, var(--swd-auth-input-bg, rgba(255,255,255,0.05)));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--swd-auth-brand, #7ae2cf) 15%, transparent);
}
.swd-auth-method-title{ font-size:var(--fs-auth-method, 14px); font-weight:var(--fw-auth-method, 700); color:var(--swd-auth-text, #123); transition:color .2s; }
.swd-auth-method.is-active .swd-auth-method-title{ color:var(--swd-auth-brand, #7ae2cf); }
.swd-auth-method-desc{ display:none; font-size:var(--fs-auth-method-desc, 12px); font-weight:var(--fw-auth-method-desc, 500); }
.swd-auth-method input[type=radio]{ display:none; }
@media(max-width:480px){ .swd-auth-methods{ flex-direction:row; gap:6px; } }

.swd-auth-name-row{ display:flex; gap:10px; }
.swd-auth-name-row .swd-auth-field{ flex:1; }
.swd-auth-otp-block{ display:flex; flex-direction:column; gap:12px; margin:2px 0; }
.swd-auth-otp-block[hidden]{ display:none; }
.swd-auth-otp-mobile-field{ margin-top:2px; }
.swd-auth-otp-send, .swd-auth-otp-resend{
  width:100%; height:54px; border-radius:14px; cursor:pointer;
  border:1px solid var(--swd-auth-brand, #7ae2cf); color:var(--swd-auth-brand, #7ae2cf); background:transparent;
  transition:all .25s;
}
.swd-auth-otp-send{ font-size:var(--fs-auth-otp-send, 15px); font-weight:var(--fw-auth-otp-send, 700); }
.swd-auth-otp-resend{ font-size:var(--fs-auth-otp-resend, 13px); font-weight:var(--fw-auth-otp-resend, 600); }
.swd-auth-otp-send:hover, .swd-auth-otp-resend:hover:not(:disabled){ background:var(--swd-auth-input-bg-focus, rgba(255,255,255,0.07)); }
.swd-auth-otp-send:disabled, .swd-auth-otp-resend:disabled{ opacity:.6; cursor:not-allowed; }
.swd-auth-otp-mobile-field input{
  font-size:var(--fs-auth-otp-mobile, 15px); font-weight:var(--fw-auth-otp-mobile, 600);
}
.swd-auth-otp-mobile-field label{
  font-size:calc(var(--fs-auth-otp-mobile, 15px) * 0.66); font-weight:var(--fw-auth-otp-mobile, 600);
}
.swd-auth-otp-mobile-field input:focus + label,
.swd-auth-otp-mobile-field input:not(:placeholder-shown) + label{
  top:10px; transform:translateY(0); font-size:calc(var(--fs-auth-otp-mobile, 15px) * 0.66); color:var(--brand); font-weight:var(--fw-auth-otp-mobile, 600);
}
.swd-auth-otp-send[hidden], .swd-auth-otp-resend[hidden]{ display:none; }
.swd-auth-otp-boxes{ display:flex; gap:8px; direction:ltr; justify-content:center; width:100%; }
.swd-auth-otp-boxes[hidden]{ display:none; }
.swd-otp-digit{
  flex:1; min-width:0; height:60px; text-align:center; font-size:26px; font-weight:800; color:var(--swd-auth-text, #123);
  border-radius:var(--swd-auth-otp-radius, 14px); border:1.5px solid var(--swd-auth-otp-border, var(--swd-auth-input-border, rgba(255,255,255,0.12)));
  background:var(--swd-auth-otp-bg, var(--swd-auth-input-bg, rgba(255,255,255,0.05))); outline:none; transition:border-color .25s, box-shadow .25s, background .25s;
  box-shadow:var(--swd-auth-otp-shadow, none);
}
.swd-otp-digit:focus{ border-color:var(--swd-auth-brand, #7ae2cf); box-shadow:0 0 0 4px var(--brand-soft); }

@media(max-width:768px){
  .swd-auth-methods{ flex-direction:row !important; gap:6px; }
  .swd-auth-method{ padding:10px 4px; border-radius:14px; min-width:0; overflow:hidden; }
  .swd-auth-method-title{ font-size:clamp(9px, 2.8vw, 13px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
}
@media(max-width:480px){ .swd-otp-digit{ height:52px; font-size:22px; } .swd-auth-methods{ gap:6px; } }

.swd-auth-form.otp-sent .swd-auth-field,
.swd-auth-form.otp-sent .swd-auth-methods,
.swd-auth-form.otp-sent .swd-auth-pass-wrap,
.swd-auth-form.otp-sent .swd-auth-remember,
.swd-auth-form.otp-sent .swd-auth-otp-send,
.swd-auth-form.otp-sent .swd-auth-otp-mobile-field{ display:none !important; }
.swd-auth-form.otp-sent .swd-auth-otp-block{ display:flex !important; }
.swd-auth-form.otp-sent .swd-auth-otp-boxes{ display:flex; }

.swd-auth-otp-resend-text{
  text-align:center; font-size:var(--fs-auth-label, 14px); font-weight:var(--fw-auth-label, 600);
  color:var(--swd-auth-text-muted, #64748b); margin:0 0 4px;
}
.swd-auth-otp-resend-text a{
  color:var(--swd-auth-brand, #7ae2cf); cursor:pointer; text-decoration:none; font-weight:700;
}
.swd-auth-otp-resend-text a:hover{ text-decoration:underline; }
.swd-auth-otp-resend-text a.disabled{ opacity:.5; cursor:not-allowed; pointer-events:none; }

.swd-auth-change-method{
  display:block; text-align:center; margin-top:12px; width:100%;
  font-size:var(--fs-auth-label, 14px); font-weight:var(--fw-auth-label, 600);
  color:var(--swd-auth-text-muted, #64748b); cursor:pointer; text-decoration:none;
  transition:color .25s;
}

.swd-auth-action-row .swd-auth-change-method{ flex:1 1 100%; }
.swd-auth-change-method:hover{ color:var(--swd-auth-brand, #7ae2cf); }

.swd-auth-method:not(.is-active){
  opacity:.5;
  filter:saturate(.6);
  transition:opacity .3s ease, filter .3s ease;
  background:var(--swd-auth-method-bg-inactive, var(--swd-auth-input-bg, rgba(255,255,255,0.05)));
}
.swd-auth-method.is-active{
  background:var(--swd-auth-method-bg-active, color-mix(in srgb, var(--swd-auth-brand, #7ae2cf) 10%, var(--swd-auth-input-bg, rgba(255,255,255,0.05))));
  box-shadow:var(--swd-auth-method-shadow, 0 0 0 3px color-mix(in srgb, var(--swd-auth-brand, #7ae2cf) 15%, transparent));
}
.swd-auth-method-title{ color:var(--swd-auth-method-text-inactive, color-mix(in srgb, var(--swd-auth-text-muted, #64748b) 70%, transparent)); }
.swd-auth-method.is-active .swd-auth-method-title{ color:var(--swd-auth-method-text-active, var(--swd-auth-brand, #7ae2cf)); }
.swd-auth-method.is-active{ opacity:1; filter:none; }

.swd-auth-field--pass input::-ms-reveal,
.swd-auth-field--pass input::-ms-clear{ display:none !important; }

.swd-auth-field--pass input{ padding-left:46px !important; }
.swd-pass-toggle{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  background:transparent; border:none; cursor:pointer; padding:6px;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--swd-auth-eye-icon, var(--swd-auth-text-muted, #64748b));
  z-index:5; line-height:0; outline:none;
  transition:color .2s;
  -webkit-tap-highlight-color:transparent;
}
.swd-pass-toggle:hover{ color:var(--swd-auth-eye-icon-hover, var(--swd-auth-brand, #7ae2cf)); }
.swd-pass-toggle svg{ width:18px; height:18px; display:block; }

.swd-auth-field--pass input:focus ~ .swd-pass-toggle{ color:var(--swd-auth-eye-icon, var(--swd-auth-brand, #7ae2cf)); }

@keyframes swd-auth-float-1{
  0%,100%{ transform:translate(50%, -50%) scale(1); }
  33%{ transform:translate(60%, -55%) scale(1.08); }
  66%{ transform:translate(40%, -45%) scale(0.95); }
}
@keyframes swd-auth-float-2{
  0%,100%{ transform:translate(50%, -50%) scale(1); }
  50%{ transform:translate(35%, -60%) scale(1.12); }
}
@keyframes swd-auth-aurora{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}
.swd-auth{
  background-size:200% 200%;
  animation:swd-auth-aurora 18s ease-in-out infinite;
}
.swd-auth-shape-blur{
  animation:swd-auth-float-1 14s ease-in-out infinite;
}
.swd-auth-shape-solid{
  animation:swd-auth-float-2 20s ease-in-out infinite;
}

.swd-capslock-tooltip{
  position:absolute; bottom:calc(100% + 8px); right:50%;
  transform:translateX(50%) translateY(4px);
  padding:8px 14px; border-radius:10px;
  background:rgba(15, 23, 42, 0.97); color:#f1f5f9;
  font-size:12px; font-weight:600; line-height:1.5; text-align:center;
  white-space:nowrap; opacity:0; visibility:hidden;
  pointer-events:none; z-index:100;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.swd-capslock-tooltip::before{
  content:''; position:absolute; top:100%; right:50%;
  transform:translateX(50%); margin-top:0;
  border:5px solid transparent; border-top-color:rgba(15, 23, 42, 0.97);
}
.swd-capslock-tooltip:not([hidden]){
  opacity:1; visibility:visible; transform:translateX(50%) translateY(0);
}
.swd-capslock-tooltip[hidden]{ display:none !important; }

.swd-auth-action-row{
  display:flex; gap:10px; margin-top:4px;
}
.swd-auth-action-row .swd-auth-submit{ flex:1; margin-top:0; }

.swd-auth-trust-device{
  display:flex; align-items:center; gap:10px;
  font-size:var(--fs-auth-trust-device, 13px);
  color:var(--swd-auth-remember, color-mix(in srgb, var(--text-muted) 50%, transparent));
  cursor:pointer; user-select:none; font-weight:var(--fw-auth-trust-device, 500);
}
.swd-auth-trust-device input[type=checkbox]{
  appearance:none; -webkit-appearance:none; width:20px; height:20px; flex:0 0 auto;
  border:2px solid color-mix(in srgb, var(--text-muted) 20%, transparent); border-radius:6px; cursor:pointer;
  background:var(--swd-auth-input-bg, rgba(255,255,255,0.05)); position:relative; transition:all .3s;
}
.swd-auth-trust-device input[type=checkbox]:checked{
  background:linear-gradient(135deg, var(--swd-auth-brand, #7ae2cf), var(--swd-auth-brand-deep, #5cb8a3));
  border-color:var(--swd-auth-brand, #7ae2cf);
}
.swd-auth-trust-device input[type=checkbox]:checked::after{
  content:""; position:absolute; right:5px; top:1px; width:5px; height:10px;
  border:solid var(--text-on-brand); border-width:0 2px 2px 0; transform:rotate(45deg);
}

.swd-auth-form.otp-sent .swd-auth-trust-device{ display:none !important; }

.swd-auth-passkey{
  flex:0 0 auto; min-width:auto; padding:0 18px; height:54px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:14px; cursor:pointer;
  color:var(--text-on-brand);
  background:linear-gradient(135deg, var(--swd-auth-brand, #7ae2cf), var(--swd-auth-brand-deep, #5cb8a3));
  box-shadow:0 12px 30px -10px var(--swd-auth-brand, #7ae2cf);
  font-size:var(--fs-auth-passkey-btn, 15px); font-weight:var(--fw-auth-passkey-btn, 700);
  transition:transform .25s, box-shadow .25s; white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}
.swd-auth-passkey:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -12px var(--swd-auth-brand, #7ae2cf); }
.swd-auth-passkey:disabled{ cursor:not-allowed; }

.swd-auth-passkey.is-disabled{
  opacity:.5; cursor:not-allowed; pointer-events:none;
  position:relative;
  transform:none; box-shadow:0 8px 20px -10px var(--swd-auth-brand, #7ae2cf);
}
.swd-auth-passkey.is-disabled:hover{ transform:none; box-shadow:0 8px 20px -10px var(--swd-auth-brand, #7ae2cf); }

.swd-auth-passkey.is-trusted{
  border:none;
  color:var(--text-on-brand);
  background:linear-gradient(135deg, var(--swd-auth-brand, #7ae2cf), var(--swd-auth-brand-deep, #5cb8a3));
  box-shadow:0 12px 30px -10px var(--swd-auth-brand, #7ae2cf);
}
.swd-auth-passkey.is-trusted:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 40px -12px var(--swd-auth-brand, #7ae2cf);
}

.swd-auth-passkey-wrap{ position:relative; display:inline-flex; flex:0 0 auto; }
.swd-auth-passkey-wrap .swd-passkey-tip{
  position:absolute; bottom:calc(100% + 8px); right:50%;
  transform:translateX(50%) translateY(4px);
  padding:8px 14px; border-radius:10px;
  background:rgba(15, 23, 42, 0.97); color:#f1f5f9;
  font-size:var(--fs-auth-passkey-tip, 12px); font-weight:var(--fw-auth-passkey-tip, 500); line-height:1.5; text-align:center;
  white-space:nowrap; opacity:0; visibility:hidden;
  pointer-events:none; z-index:100;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.swd-auth-passkey-wrap .swd-passkey-tip::before{
  content:''; position:absolute; top:100%; right:50%;
  transform:translateX(50%); margin-top:0;
  border:5px solid transparent; border-top-color:rgba(15, 23, 42, 0.97);
}
.swd-auth-passkey-wrap:hover .swd-passkey-tip{
  opacity:1; visibility:visible; transform:translateX(50%) translateY(0);
}
.swd-auth-passkey svg{ width:20px; height:20px; flex-shrink:0; }
.swd-auth-passkey[hidden]{ display:none !important; }
.swd-auth-form.otp-sent .swd-auth-passkey-wrap{ display:none !important; }
.swd-passkey-spinner{
  display:inline-block; width:18px; height:18px;
  border:2px solid var(--swd-auth-text-on-brand-30, rgba(255,255,255,0.3));
  border-top-color:var(--swd-auth-brand, #7ae2cf);
  border-radius:50%; animation:swd-spin .7s linear infinite;
}
@media(max-width:480px){
  .swd-auth-passkey{ padding:0 14px; font-size:calc(var(--fs-auth-passkey-btn, 15px) * 0.87); }
  .swd-auth-passkey span{ max-width:120px; overflow:hidden; text-overflow:ellipsis; }
  .swd-auth-action-row{ flex-wrap:wrap; }
  .swd-auth-action-row .swd-auth-submit{ flex:1 1 100%; }
  .swd-auth-passkey-wrap{ flex:1 1 100%; }
  .swd-auth-passkey{ flex:1 1 100%; justify-content:center; height:54px; }
}

.swd-auth-form.otp-sent .swd-auth-field,
.swd-auth-form.otp-sent .swd-auth-methods,
.swd-auth-form.otp-sent .swd-auth-pass-wrap,
.swd-auth-form.otp-sent .swd-auth-remember,
.swd-auth-form.otp-sent .swd-auth-otp-send,
.swd-auth-form.otp-sent .swd-auth-otp-mobile-field{ display:none !important; }
.swd-auth-form.otp-sent .swd-auth-otp-block{ display:flex !important; }
.swd-auth-form.otp-sent .swd-auth-otp-boxes{ display:flex; }
.swd-auth-form.otp-sent .swd-auth-passkey{ display:none !important; }
