/* ===========================================================================
   صفحات احراز هویت، نصب و صفحات عمومی مشتری
   =========================================================================== */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-aside {
  background: linear-gradient(150deg, var(--primary-dark), var(--primary) 55%, var(--accent));
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::before, .auth-aside::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.auth-aside::before { width: 380px; height: 380px; top: -120px; inset-inline-end: -100px; }
.auth-aside::after { width: 260px; height: 260px; bottom: -90px; inset-inline-start: -60px; }
.auth-aside__brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.auth-aside__brand-logo { width: 52px; height: 52px; border-radius: var(--radius); background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 800; font-size: 20px; backdrop-filter: blur(6px); }
.auth-aside__content { position: relative; z-index: 2; }
.auth-aside__content h1 { font-size: 30px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.auth-aside__content p { font-size: 15px; opacity: .9; line-height: 2; max-width: 420px; }
.auth-aside__features { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.auth-aside__feature { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.auth-aside__feature .ic { background: rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: 7px; }
.auth-aside__foot { position: relative; z-index: 2; font-size: 12.5px; opacity: .7; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box__head { margin-bottom: 30px; text-align: center; }
.auth-box__head h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-box__head p { color: var(--text-muted); font-size: 14px; }
.auth-box .form-group { margin-bottom: 18px; }
.auth-box .btn-primary { padding: 13px; font-size: 15px; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* --- نصب‌کننده --- */
.install-wrap { max-width: 720px; margin: 5vh auto; padding: 0 16px; }
.install-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.install-header { background: linear-gradient(135deg, var(--primary-dark), var(--accent)); color: #fff; padding: 36px 40px; text-align: center; }
.install-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.install-header p { opacity: .9; font-size: 14px; }
.install-steps { display: flex; padding: 20px 40px; gap: 8px; border-bottom: 1px solid var(--border); }
.install-step { flex: 1; text-align: center; font-size: 12px; color: var(--text-muted); position: relative; }
.install-step__num { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); color: var(--gray-500); display: grid; place-items: center; margin: 0 auto 6px; font-weight: 700; }
.install-step.active .install-step__num { background: var(--primary); color: #fff; }
.install-body { padding: 32px 40px; }

/* --- صفحه عمومی (پروپوزال/قرارداد/فاکتور) --- */
.public-page { min-height: 100vh; background: var(--bg); padding: 30px 16px; }
.public-container { max-width: 860px; margin: 0 auto; }
.public-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.public-doc { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.public-doc__header { padding: 32px 40px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 18px; }
.public-doc__body { padding: 32px 40px; line-height: 2.1; font-size: 14.5px; }
.public-doc__body h1, .public-doc__body h2, .public-doc__body h3 { margin: 18px 0 10px; }
.public-doc__actions { padding: 24px 40px; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; gap: 12px; flex-wrap: wrap; }

/* پد امضای دیجیتال */
.sign-pad { border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); position: relative; touch-action: none; }
.sign-pad canvas { width: 100%; height: 180px; display: block; cursor: crosshair; }
.sign-pad__hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gray-400); font-size: 13px; pointer-events: none; }

/* جعبه OTP */
.otp-inputs { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.otp-inputs input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }

@media (max-width: 600px) {
  .public-doc__header, .public-doc__body, .public-doc__actions { padding-inline: 20px; }
}
