@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-Thin.woff2') format('woff2');font-weight:100;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-ExtraLight.woff2') format('woff2');font-weight:200;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:Peyda;src:url('../parseh-v2/fonts/Peyda-Black.woff2') format('woff2');font-weight:900;font-display:swap}
@font-face{font-family:IRANYekan;src:url('../parseh-v2/fonts/IRANYekan-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:IRANYekan;src:url('../parseh-v2/fonts/IRANYekan-Regular.woff2') format('woff2');font-weight:400 600;font-display:swap}
@font-face{font-family:IRANYekan;src:url('../parseh-v2/fonts/IRANYekan-Bold.woff2') format('woff2');font-weight:700 900;font-display:swap}

:root{--parseh-green:#349483;--parseh-dark:#333;--parseh-muted:#707070;--parseh-gray:#959595;--parseh-placeholder:#888;--parseh-surface:#f9f9f9;--parseh-border:#e5e5e5}
*{box-sizing:border-box}
html,body{margin:0;min-width:320px;min-height:100%;background:#fff;color:var(--parseh-dark);font-family:Peyda,IRANYekan,Tahoma,sans-serif}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
.auth-screen{position:relative;min-height:100vh;min-height:100svh;overflow:hidden;background:#fff;direction:rtl}
.auth-logo{position:absolute;top:120px;left:50%;width:212px;height:80px;transform:translateX(-50%);display:block}
.auth-logo img{display:block;width:100%;height:100%}
.auth-back{position:absolute;z-index:2;top:136px;right:120px;width:140px;height:48px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--parseh-dark);font-size:16px;font-weight:700;line-height:22px;text-decoration:none;border-radius:12px}
.auth-back img{width:24px;height:24px;filter:brightness(.35)}
.auth-panel{position:absolute;top:50%;left:50%;width:428px;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:48px}
.auth-panel--password{width:444px}
.auth-panel--password .auth-form{width:428px;margin-inline:auto}
.auth-heading{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.auth-heading h1,.auth-heading p{margin:0}
.auth-heading h1{color:var(--parseh-dark);font-size:24px;font-weight:700;line-height:34px}
.auth-heading p{color:var(--parseh-muted);font-size:20px;font-weight:400;line-height:28px;white-space:nowrap}
.auth-form{width:100%;display:flex;flex-direction:column;gap:24px}
.auth-field{width:100%;display:flex;flex-direction:column;gap:8px;color:var(--parseh-dark);font-size:14px;font-weight:700;line-height:20px}
.auth-field>input,.auth-input-wrap{display:flex;width:100%;height:56px;background:var(--parseh-surface);border:1px solid var(--parseh-border);border-radius:12px}
.auth-field>input,.auth-input-wrap input{min-width:0;width:100%;outline:0;color:var(--parseh-dark);font-size:18px;font-weight:400;line-height:25px;text-align:right;padding:15px 16px}
.auth-field>input{border:1px solid var(--parseh-border);background:var(--parseh-surface)}
.auth-input-wrap input{border:0;background:transparent}
.auth-field>input[type="tel"],.auth-field>input[type="number"],.auth-field>input[inputmode="numeric"],.auth-field>input[inputmode="decimal"],.auth-input-wrap input[type="tel"],.auth-input-wrap input[type="number"],.auth-input-wrap input[inputmode="numeric"],.auth-input-wrap input[inputmode="decimal"]{direction:ltr;font-family:Peyda,IRANYekan,Tahoma,sans-serif;text-align:left}
.auth-field>input::placeholder,.auth-input-wrap input::placeholder{color:var(--parseh-placeholder);opacity:1}
.auth-field>input:focus,.auth-input-wrap:focus-within,.otp-inputs input:focus{border-color:var(--parseh-green);box-shadow:0 0 0 2px rgba(52,148,131,.12)}
.auth-primary,.auth-secondary{width:100%;height:56px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;font-size:18px;font-weight:700;line-height:25px;text-decoration:none;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.auth-primary{border:1px solid var(--parseh-green);background:var(--parseh-green);color:#fff}
.auth-secondary{border:2px solid var(--parseh-green);background:#fff;color:var(--parseh-green)}
.auth-primary:hover:not(:disabled){border-color:#2f8879;background:#2f8879;color:#fff}
.auth-secondary:hover:not(:disabled){background:#f0f8f6;color:#2f8879}
.auth-primary:hover,.auth-secondary:hover{transform:none!important}
.auth-primary:disabled{cursor:wait;opacity:.82}
.auth-primary::before{content:"";display:none;flex:0 0 18px;width:18px;height:18px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:parseh-auth-spin .7s linear infinite}
.auth-primary.is-loading::before{display:block}
.auth-inline-actions button.is-loading::before,.otp-actions button.is-loading::before{content:"";display:inline-block;width:14px;height:14px;margin-left:7px;vertical-align:-2px;border:2px solid rgba(52,148,131,.3);border-top-color:var(--parseh-green);border-radius:50%;animation:parseh-auth-spin .7s linear infinite}
@keyframes parseh-auth-spin{to{transform:rotate(360deg)}}
.auth-errors:empty{display:none}
.auth-errors{margin:-12px 0;color:#b42318;font-size:13px;line-height:20px;text-align:right}
.auth-password-block{display:flex;flex-direction:column;gap:12px}
.auth-input-wrap{position:relative;align-items:center}
.auth-input-wrap input{padding-left:56px}
.password-toggle{position:absolute;left:16px;top:50%;width:24px;height:24px;transform:translateY(-50%);display:grid;place-items:center;padding:0;border:0;background:none;cursor:pointer}
.password-toggle img{width:24px;height:24px}
.auth-inline-actions{height:22px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.auth-inline-actions button,.otp-actions button{padding:0;border:0;background:none;color:var(--parseh-green);font-size:16px;font-weight:600;line-height:22px;cursor:pointer;white-space:nowrap}
.auth-button-pair{display:flex;gap:12px;direction:rtl}
.auth-button-pair>*{flex:1}
.otp-block{display:flex;flex-direction:column;gap:12px}
.otp-inputs{width:100%;height:56px;display:flex;direction:ltr;gap:16px}
.otp-inputs input{width:72.8px;height:56px;padding:0;border:1px solid var(--parseh-border);border-radius:12px;background:var(--parseh-surface);outline:0;color:var(--parseh-dark);font-size:22px;font-weight:700;text-align:center;direction:ltr}
.otp-actions{height:22px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:var(--parseh-green)}
.otp-actions a,.otp-actions button{color:var(--parseh-green);font-size:16px;font-weight:600;line-height:22px;text-decoration:none}
.otp-actions button:disabled{color:#8fc8be;cursor:default}
.auth-panel--register .auth-form{gap:24px}

/* Password modal: desktop dialog and mobile bottom sheet from the Figma frames. */
.parseh-reset-layer{position:fixed;z-index:10000;inset:0;display:none;align-items:center;justify-content:center;direction:rtl;font-family:Peyda,IRANYekan,Tahoma,sans-serif;opacity:0;pointer-events:none;transition:opacity .24s ease}
.parseh-reset-layer.is-open,.parseh-reset-layer.is-closing{display:flex}
.parseh-reset-layer.is-open{opacity:1;pointer-events:auto}
.parseh-reset-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(0,0,0,.8);cursor:default}
.parseh-reset-modal{position:relative;z-index:1;width:600px;height:458px;padding:32px;display:flex;flex-direction:column;gap:48px;border-radius:24px;background:#fff;opacity:.95;transform:translateY(18px) scale(.985);transition:transform .24s ease,opacity .24s ease}
.parseh-reset-layer.is-open .parseh-reset-modal{opacity:1;transform:translateY(0) scale(1)}
.parseh-reset-modal header{height:30px;display:flex;align-items:center;justify-content:space-between;direction:rtl}
.parseh-reset-modal h2{margin:0;color:var(--parseh-dark);font-size:20px;font-weight:700;line-height:28px}
.parseh-reset-close{position:relative;width:24px;height:24px;padding:0;border:0;background:none;cursor:pointer;order:2}
.parseh-reset-close span{position:absolute;top:11px;left:5px;width:14px;height:1.5px;background:var(--parseh-gray);border-radius:2px;transform:rotate(45deg)}
.parseh-reset-close span+span{transform:rotate(-45deg)}
.parseh-reset-modal form{height:316px;display:flex;flex-direction:column;gap:24px}
.parseh-reset-modal .auth-field:first-child{height:112px}
.parseh-reset-modal .auth-field:nth-child(2){height:84px}
.parseh-reset-modal .auth-field small{height:20px;color:var(--parseh-muted);font-size:14px;font-weight:400;line-height:20px}
.parseh-reset-modal .auth-primary{height:48px;font-size:16px;line-height:22px}
.parseh-reset-handle{display:none}
body:has(.parseh-reset-layer.is-open){overflow:hidden}

@media (max-width:600px){
  .auth-logo{top:80px;width:148px;height:56px}
  .auth-back{top:24px;right:24px;width:24px;height:24px}
  .auth-back span{display:none}
  .auth-back img{filter:none}
  .auth-panel{top:316px;right:24px;left:24px;width:auto;transform:none;gap:32px}
  .auth-panel--password{top:350px}
  .auth-panel--entry,.auth-panel--otp{height:auto}
  .auth-heading{gap:8px}
  .auth-heading h1{font-size:16px;line-height:22px}
  .auth-heading p{font-size:14px;line-height:20px}
  .auth-form,.auth-panel--password .auth-form{width:100%;gap:24px}
  .auth-field{font-size:12px;line-height:17px}
  .auth-field>input{height:48px;padding:14px 16px;font-size:14px;line-height:20px}
  .auth-input-wrap{height:52px}
  .auth-input-wrap input{font-size:14px;line-height:20px;padding:14px 16px;padding-left:56px}
  .auth-primary,.auth-secondary{height:48px;font-size:16px;line-height:22px}
  .auth-inline-actions{height:17px}
  .auth-inline-actions button{font-size:12px;line-height:17px}
  .otp-inputs{height:48px;gap:16px}
  .otp-inputs input{width:calc((100% - 64px)/5);height:48px;font-size:18px}
  .otp-actions{height:17px}
  .otp-actions a,.otp-actions button{font-size:12px;line-height:17px}
  .auth-panel--register .auth-form{gap:24px}
  .auth-button-pair{gap:12px}
  .parseh-reset-layer{align-items:flex-end}
  .parseh-reset-modal{width:100%;height:415px;padding:48px 24px 24px;gap:32px;border-radius:24px 24px 0 0;opacity:1;transform:translateY(100%)}
  .parseh-reset-layer.is-open .parseh-reset-modal{transform:translateY(0)}
  .parseh-reset-handle{position:absolute;top:12px;left:50%;display:block;width:80px;height:8px;transform:translateX(-50%);border-radius:8px;background:var(--parseh-border)}
  .parseh-reset-modal header{height:24px}
  .parseh-reset-modal h2{font-size:16px;line-height:22px}
  .parseh-reset-modal form{height:287px;gap:16px}
  .parseh-reset-modal .auth-field:first-child{height:98px}
  .parseh-reset-modal .auth-field:nth-child(2){height:73px}
  .parseh-reset-modal .auth-input-wrap{height:48px}
  .parseh-reset-modal .auth-field small{height:17px;font-size:12px;line-height:17px}
  .parseh-reset-modal .auth-primary{margin-top:0;height:48px;font-size:16px}
}
@media (prefers-reduced-motion:reduce){.parseh-reset-layer,.parseh-reset-modal{transition-duration:.01ms!important}}

@media (max-width:370px){
  .auth-panel{right:16px;left:16px}
  .auth-heading p{white-space:normal}
  .otp-inputs{gap:10px}
  .otp-inputs input{width:calc((100% - 40px)/5)}
}
