/* Standalone sign-in: no storefront navigation or floating controls. */
body.auth-page {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink);
  font-family: 'Manrope', sans-serif; line-height: 1.65;
  background: radial-gradient(ellipse at 10% 10%, #deebfc 0, transparent 50%),
    radial-gradient(ellipse at 90% 90%, #f2eadb 0, transparent 45%), #f3f6fb;
  -webkit-font-smoothing: antialiased;
}
html[lang=fa] .auth-page { font-family: 'Vazirmatn', sans-serif; }
html[lang=ar] .auth-page { font-family: 'Noto Sans Arabic', sans-serif; }
.auth-shell { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.auth-card { width: min(100%, 440px); padding: 30px; background: #fff; border: 1px solid #e1e8f1; border-radius: 24px; box-shadow: 0 20px 70px #1433570c; position: relative; }
.auth-card::before { content: ''; position: absolute; inset-block-start: -1px; inset-inline: 30px; height: 3px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #1466d8, #8bb5ed 65%, #dbaa50); }
.auth-brand-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-brand { gap: 8px; }
.auth-brand .brand-mark { width: 44px; height: 43px; }
.auth-brand .brand-mark img { height: 43px; }
.auth-brand .brand-wordmark { font-size: 17px; }
.auth-brand .brand-wordmark small { margin-top: 5px; }
.auth-home { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 1px solid #e5ebf3; background: #f8fafd; border-radius: 11px; color: #61758c; font-size: 11px; }
.auth-home .px-icon { width: 16px; height: 16px; }
.auth-home:hover { color: var(--blue); background: #edf4ff; }
.auth-heading { margin-block: 25px 22px; }
.auth-heading h1 { font-size: 26px; line-height: 1.5; font-weight: 800; letter-spacing: 0; }
.auth-heading p { margin-top: 6px; font-size: 12px; line-height: 1.9; color: #76859a; }
.auth-form, .auth-fields { display: grid; gap: 14px; }
.auth-field { min-width: 0; }
.auth-field .px-label { font-size: 12px; margin-bottom: 5px; color: #40536d; }
.auth-field .px-input { width: 100%; height: 46px; min-height: 44px; padding: 9px 12px; font-size: 16px; background: #f9fbfe; border: 1px solid #dce4ef; border-radius: 10px; color: var(--ink); }
.auth-field .px-input:focus { background: #fff; border-color: #8bb5ed; outline: 0; box-shadow: 0 0 0 3px #1466d814; }
.auth-options { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; font-size: 11px; }
.auth-remember { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; color: #65758a; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--blue); }
.auth-options > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); }
.auth-form > .px-btn { width: 100%; min-height: 46px; font-size: 13px; font-weight: 700; border-radius: 10px; background: var(--blue); color: #fff; border: 0; }
.auth-form > .px-btn:hover { background: var(--blue-dark); }
.auth-password-hint { font-size: 10px; line-height: 1.7; color: #78869a; }
.auth-switch { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-top: 1px solid #edf1f6; padding-top: 14px; margin-top: 20px; font-size: 12px; color: #78869a; text-align: center; }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; }
.auth-resend { margin-top: 12px; font-size: 12px; }
.auth-feedback:empty { display: none; }
.auth-feedback > [role] { font-size: 12px; line-height: 1.8; padding: 10px 12px; margin-bottom: 12px; }
.auth-notice { border: 1px solid #c7e7da; border-radius: 10px; background: #f0fbf6; color: #267151; }
@media (max-width: 640px) {
  .auth-shell { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .auth-card { padding: 22px; border-radius: 20px; }
  .auth-heading { margin-block: 20px 18px; }
  .auth-heading h1 { font-size: 23px; }
  .auth-form, .auth-fields { gap: 12px; }
}
/* Keep the complete registration form in view on short phones. Allow natural
   scrolling for validation messages and the onscreen keyboard. */
@media (max-height: 740px) {
  .auth-shell { padding-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom)); }
  .auth-card { padding: 14px 22px; }
  .auth-brand .brand-mark { width: 36px; height: 35px; }
  .auth-brand .brand-mark img { height: 35px; }
  .auth-brand .brand-wordmark { font-size: 15px; }
  .auth-brand .brand-wordmark small { font-size: 8px; margin-top: 3px; }
  .auth-heading { margin-block: 10px 12px; }
  .auth-heading h1 { font-size: 22px; }
  .auth-heading p { display: none; }
  .auth-form, .auth-fields { gap: 8px; }
  .auth-field .px-label { font-size: 11px; line-height: 16px; margin-bottom: 3px; }
  .auth-field .px-input { height: 44px; }
  .auth-form > .px-btn { min-height: 44px; }
  .auth-switch { padding-top: 6px; margin-top: 10px; font-size: 11px; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .auth-register .auth-card { padding-block: 12px; }
  .auth-register .auth-form, .auth-register .auth-fields { gap: 6px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .auth-card { width: min(100%, 620px); padding-block: 10px; }
  .auth-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .auth-heading { margin-block: 4px 8px; }
  .auth-heading h1 { font-size: 18px; line-height: 1.4; }
  .auth-switch { padding-top: 2px; margin-top: 6px; }
}
