/* The circular control retains compact-header.css geometry and colors. */
body .persi-header.persi-header--compact[data-persi-site] .persi-nav-auth{cursor:pointer}
body.pb-page.pb-auth-open{overflow:hidden}
.pb-auth-dialog,.pb-auth-toast{box-sizing:border-box;font-family:Vazirmatn,Tahoma,Arial,sans-serif;direction:rtl;color:#333e23}
.pb-auth-dialog *,.pb-auth-dialog *::before,.pb-auth-dialog *::after{box-sizing:border-box}
.pb-auth-dialog{width:min(440px,calc(100% - 28px));max-width:440px;max-height:calc(100dvh - 32px);margin:auto;padding:30px 32px 24px;border:1px solid #e1e7d9;border-radius:25px;overflow:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#fff,#f4f7ef);box-shadow:0 24px 90px #26371640,0 1px 0 #fff inset;text-align:right;scrollbar-width:thin;scrollbar-color:#bdc8b0 transparent}
.pb-auth-dialog::backdrop{background:#27341ddd;opacity:.48;backdrop-filter:blur(4px)}
.pb-auth-dialog[open]{animation:pb-auth-appear 180ms ease-out}
.pb-auth-dialog h2{margin:0;text-align:center;color:#425626;font-size:24px;font-weight:750;line-height:1.8}
.pb-auth-ornament{display:block;width:34px;height:34px;margin:0 auto 8px;color:#718b50}
.pb-auth-form{display:grid;gap:16px;margin:0}
.pb-auth-field{display:grid;gap:7px}
.pb-auth-field label{font-size:13px;font-weight:600;color:#4b5a38}
.pb-auth-field input{width:100%;height:49px;min-width:0;padding:10px 14px;font:16px/1.6 Vazirmatn,Tahoma,Arial,sans-serif;text-align:left;direction:ltr;border:1px solid #cbd5c1;border-radius:11px;background:#fdfefb;color:#333e23;box-shadow:inset 2px 2px 4px #536b2f0b;outline:none;transition:border-color .15s,box-shadow .15s}
.pb-auth-field input::placeholder{color:#959d8c;font-size:14px}
.pb-auth-field input:focus{border-color:#718b50;box-shadow:0 0 0 3px #718b5026}
.pb-auth-field input[aria-invalid=true]{border-color:#a64b40}
.pb-auth-help{font-size:11px;color:#6a755c;margin:0;line-height:1.8}
.pb-auth-dialog button{font-family:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pb-auth-submit{width:100%;min-height:49px;margin-top:3px;border:1px solid #637f3e;border-radius:12px;background:linear-gradient(145deg,#69854a,#50682f 75%);color:#fff;font-size:15px;font-weight:650;line-height:1.8;box-shadow:4px 5px 10px #4253272b,-3px -3px 8px #fff,inset 1px 1px 1px #ffffff38,inset -1px -1px 2px #283d1a35;transition:box-shadow .15s,transform .15s}
.pb-auth-submit:hover{filter:brightness(1.04)}
.pb-auth-submit:active{transform:translateY(1px) scale(.99);box-shadow:inset 3px 3px 7px #243a2260,inset -2px -2px 5px #ffffff24}
.pb-auth-dialog button:focus-visible{outline:3px solid #7a9555;outline-offset:3px}
.pb-auth-dialog button:disabled{cursor:wait;opacity:.65}
.pb-auth-links{display:grid;justify-items:center;gap:0;margin-top:11px}
.pb-auth-link{display:block;min-height:42px;padding:7px 18px;border:0;background:transparent;color:#50682f;font-size:13px;line-height:1.8;border-radius:8px}
.pb-auth-link:hover{background:#50682f09;text-decoration:underline;text-underline-offset:4px}
.pb-auth-link--quiet{color:#748064}
.pb-auth-divider{width:58px;height:1px;background:#dfe5d8;margin:4px auto}
.pb-auth-alert{margin:0 0 18px;padding:12px 14px;border:1px solid #d6dfc9;border-radius:12px;color:#4e6435;background:#edf3e5;font-size:12px;line-height:2}
.pb-auth-instruction{margin:0 0 7px;text-align:center;font-size:14px;line-height:1.9}
.pb-auth-email{display:block;margin:0 0 19px;color:#6a755c;font:13px/1.6 Arial,sans-serif;text-align:center;direction:ltr;overflow-wrap:anywhere}
.pb-auth-field .pb-auth-code{height:57px;letter-spacing:9px;padding-left:22px;text-align:center;font-size:25px;font-weight:650}
.pb-auth-error{padding:10px 12px;margin:0;border:1px solid #dfbcb5;border-radius:10px;color:#934437;background:#fff4ef;font-size:12px;line-height:1.9}
.pb-auth-error[hidden]{display:none}
.pb-auth-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);z-index:2147483646;padding:12px 22px;background:#425626;color:white;border:1px solid #687e4b;border-radius:13px;text-align:center;font-size:13px;line-height:1.9;box-shadow:0 7px 24px #333e2329}
.pb-auth-toast:empty{display:none}
@keyframes pb-auth-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:500px){.pb-auth-dialog{padding:22px 22px 17px;border-radius:21px;max-height:calc(100dvh - 20px)}.pb-auth-dialog h2{font-size:22px}.pb-auth-form{gap:13px}.pb-auth-ornament{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){.pb-auth-dialog[open]{animation:none}.pb-auth-dialog *{transition:none!important}}

/* Password visibility controls stay separate from the entered value. */
.pb-auth-password{display:flex;align-items:stretch;gap:8px;min-width:0}
.pb-auth-field .pb-auth-password input{flex:1;min-width:0;width:0}
.pb-auth-password-toggle{flex:0 0 auto;min-height:49px;min-width:82px;padding:8px 10px;border:1px solid #cbd5c1;border-radius:11px;background:linear-gradient(145deg,#fff,#eaf0e1);color:#50682f;font-size:11px;font-weight:600;line-height:1.8;white-space:nowrap;box-shadow:2px 2px 5px #42532712,inset 1px 1px 1px #fff}
.pb-auth-password-toggle:hover{background:#edf3e6}
.pb-auth-password-toggle:active{box-shadow:inset 2px 2px 4px #42532720}
.pb-auth-password-toggle[aria-pressed=true]{background:#e5eddc;border-color:#9dae8a}


/* Approved olive contrast design, 2026-11-10. */
/* Form actions carry the strongest green; secondary controls stay light. */
.pb-auth-dialog { background:#fffefa; color:#283b22; border-color:#cdd6c2; border-radius:18px; }
.pb-auth-dialog h2 { color:#344a24; }
.pb-auth-field label,.pb-auth-instruction { color:#344a24; }
.pb-auth-field input { background:#fff; color:#283b22; border-color:#8b9a7c; box-shadow:inset 0 1px 2px #344a2408; }
.pb-auth-field input::placeholder { color:#65705b; }
.pb-auth-field input:focus { border-color:#476337; box-shadow:0 0 0 3px #47633726; }
.pb-auth-submit {
  background:#476337;
  color:#fff;
  border-color:#3a522c;
  border-radius:10px;
  box-shadow:0 3px 0 #2f4822,0 6px 12px #344a2414,inset 0 1px 0 #ffffff29;
}
.pb-auth-submit:not(:disabled):hover { background:#3b552d; filter:none; }
.pb-auth-submit:not(:disabled):active { background:#344a24; transform:translateY(3px); box-shadow:inset 0 2px 5px #1e301a80; }
.pb-auth-link,.pb-auth-password-toggle { color:#344a24; }
.pb-auth-link--quiet,.pb-auth-help,.pb-auth-demo-note,.pb-auth-email { color:#58634f; }
.pb-auth-password-toggle { background:#f1f5ea; border-color:#8b9a7c; box-shadow:0 2px 0 #d2dcc6; }
.pb-auth-password-toggle:hover { background:#e8efdd; }
.pb-auth-password-toggle:active { transform:translateY(1px); box-shadow:inset 0 1px 3px #344a2426; }
.pb-auth-password-toggle[aria-pressed=true] { background:#e5eddc; border-color:#6f855b; }
.pb-auth-dialog button:focus-visible { outline-color:#476337; }
.pb-auth-toast { background:#344a24; border-color:#344a24; }


/* One close control in the physical upper-left corner, also in RTL. */
.pb-auth-dialog .pb-auth-close{position:absolute;top:8px;left:8px;right:auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;margin:0;border:0;border-radius:50%;background:transparent;color:#58634f;box-shadow:none;line-height:1}
.pb-auth-dialog .pb-auth-close svg{display:block;width:24px;height:24px;pointer-events:none}
.pb-auth-dialog .pb-auth-close:hover{background:#edf3e5;color:#344a24}

.pb-auth-dialog .pb-logout-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.pb-auth-dialog .pb-logout-actions button{margin:0;min-height:46px}
.pb-auth-dialog .pb-logout-actions .pb-auth-link{border:1px solid #b5c0a9;border-radius:12px;background:#edf3e5;color:#344a24}
