/* Abarip sign-in / registration. Design: "Abarip Customer" (Vazirmatn, one blue accent, white card, 14px controls). Minimal, centred. RTL. */

body.abauth-page {
  --a-bg: #F4F6FB; --a-sf: #FFFFFF; --a-ink: #101828; --a-mu: #667085; --a-bd: #E1E6EF; --a-bd2: #D0D7E4;
  --a-ac: #2E5CE6; --a-vi: #7C5CE6; --a-tint: #EEF3FF; --a-ok: #17A673; --a-bad: #B42318;
  --a-ff: "OIP Vazirmatn", Vazirmatn, Tahoma, sans-serif;
}
/* the theme's page title band is noise on this screen */
body.abauth-page .page_head, body.abauth-page .page-title-bar { display: none !important; }
body.abauth-page .page_content { background: transparent !important; box-shadow: none !important; padding: 0 !important; }

.abauth { min-height: 72vh; display: grid; place-items: center; align-content: center; gap: 14px; padding: 40px 16px 56px; background: var(--a-bg); font-family: var(--a-ff); direction: rtl; text-align: right; color: var(--a-ink); }
.abauth *, .abauth *::before, .abauth *::after { box-sizing: border-box; font-family: inherit; }
.abauth__card { width: 100%; max-width: 420px; background: var(--a-sf); border: 1px solid var(--a-bd); border-radius: 24px; padding: 28px 26px 22px; box-shadow: 0 24px 60px -24px rgba(16, 24, 40, .18); display: grid; gap: 16px; }

.abauth__brand { justify-self: center; display: inline-flex; line-height: 0; margin-bottom: 2px; }
.abauth__brand img { height: auto; max-height: 120px; width: auto; max-width: 220px; object-fit: contain; }
.abauth__brand--text { line-height: 1.4; font-size: 20px; font-weight: 800; color: var(--a-ink) !important; text-decoration: none !important; }

.abauth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--a-bg); border: 1px solid var(--a-bd); border-radius: 14px; padding: 4px; }
.abauth__tab { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 11px; font-size: 14.5px; font-weight: 700; color: var(--a-mu) !important; text-decoration: none !important; transition: background .15s, color .15s, box-shadow .15s; }
.abauth__tab[aria-selected="true"] { background: #fff; color: var(--a-ink) !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 10px -4px rgba(16, 24, 40, .12); }
.abauth__tab:focus-visible { outline: 3px solid rgba(46, 92, 230, .4); outline-offset: 1px; }

.abauth [role="tabpanel"] { display: grid; gap: 14px; }
.abauth [role="tabpanel"][hidden] { display: none; }
.abauth__title { margin: 0 !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1.4 !important; color: var(--a-ink) !important; }
.abauth__sub { margin: -8px 0 2px !important; font-size: 13.5px; color: var(--a-mu); line-height: 1.9; }
.abauth__title--c, .abauth__sub--c { text-align: center; }

html body.abauth-page .abauth form.abauth__form, html body .abauth form.abauth__form { display: grid !important; gap: 16px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.abauth .abauth__form > p, .abauth .abauth__form .form-row { margin: 0 !important; }
.abauth .abauth__field { display: grid !important; gap: 7px; margin: 0 !important; }
.abauth__field label { font-size: 13px; font-weight: 700; color: var(--a-ink); margin: 0; }
.abauth__box { position: relative; display: flex; align-items: center; }
.abauth__ico { position: absolute; inset-inline-start: 14px; display: grid; place-items: center; color: #98A2B3; pointer-events: none; transition: color .15s; }
.abauth__input { width: 100% !important; height: 50px !important; margin: 0 !important; border: 1px solid var(--a-bd2) !important; border-radius: 14px !important; background: #fff !important; padding: 0 44px 0 14px !important; font-size: 15px !important; color: var(--a-ink) !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.abauth__input[dir="ltr"] { text-align: left; }
.abauth__input::placeholder { color: #B3BBC9; }
.abauth__input:hover { border-color: #B9C3D4 !important; }
.abauth__input:focus { outline: none !important; border-color: var(--a-ac) !important; box-shadow: 0 0 0 4px rgba(46, 92, 230, .12) !important; }
.abauth__box:focus-within .abauth__ico { color: var(--a-ac); }
.abauth__pw .abauth__input { padding-left: 46px !important; }
.abauth__eye { position: absolute; left: 6px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; color: #98A2B3; cursor: pointer; }
.abauth__eye:hover { color: var(--a-ink); background: var(--a-bg); }
.abauth__eye:focus-visible { outline: 3px solid rgba(46, 92, 230, .4); }
.abauth__eye .i-off, .abauth__eye.is-on .i-on { display: none; }
.abauth__eye.is-on .i-off { display: grid; }
.abauth__hint { font-size: 12px; color: var(--a-mu); line-height: 1.8; }

/* password strength */
.abauth__meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 4px; min-height: 16px; }
.abauth__meter i { height: 4px; border-radius: 4px; background: #E6EAF1; transition: background .2s; }
.abauth__meter span { font-size: 11.5px; font-weight: 700; min-width: 44px; text-align: left; color: var(--a-mu); }
.abauth__meter[data-s="1"] i:nth-child(-n+1) { background: #F04438; }
.abauth__meter[data-s="2"] i:nth-child(-n+2) { background: #F79009; }
.abauth__meter[data-s="3"] i:nth-child(-n+3) { background: #2E90FA; }
.abauth__meter[data-s="4"] i { background: var(--a-ok); }
.abauth__meter[data-s="1"] span { color: #D92D20; }
.abauth__meter[data-s="4"] span { color: #067647; }

.abauth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.abauth__row a { color: var(--a-ac) !important; font-weight: 700; text-decoration: none !important; }
.abauth__row a:hover { text-decoration: underline !important; }
.abauth__check { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; color: var(--a-ink); font-weight: 500; }
.abauth__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--a-ac); }

.abauth__btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 14px; background: linear-gradient(120deg, var(--a-ac), var(--a-vi)); color: #fff !important; font-size: 15.5px; font-weight: 800; cursor: pointer; text-decoration: none !important; box-shadow: 0 10px 24px -8px rgba(46, 92, 230, .55); transition: transform .12s, box-shadow .15s, opacity .15s; }
.abauth__btn:hover { box-shadow: 0 14px 28px -8px rgba(46, 92, 230, .6); }
.abauth__btn:active { transform: scale(.985); }
.abauth__btn:focus-visible { outline: 3px solid rgba(46, 92, 230, .45); outline-offset: 2px; }
.abauth__btn.is-busy { opacity: .75; pointer-events: none; position: relative; color: transparent !important; }
.abauth__btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: abauth-spin .7s linear infinite; }
@keyframes abauth-spin { to { transform: rotate(360deg); } }

.abauth__fine { margin: 0 !important; font-size: 12px; color: var(--a-mu); text-align: center; line-height: 1.9; }
.abauth__fine a, .abauth__help a { color: var(--a-ac) !important; font-weight: 700; text-decoration: none !important; }
.abauth__help { margin: 2px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--a-bd); font-size: 13px; color: var(--a-mu); text-align: center; }
.abauth__secure { margin: 0 !important; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #98A2B3; }

.abauth__back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 700; color: var(--a-mu) !important; text-decoration: none !important; }
.abauth__back:hover { color: var(--a-ac) !important; }
.abauth__done { justify-self: center; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #E6F7EF; color: var(--a-ok); }

/* honeypot: hidden in place (an off-screen offset makes the RTL page scroll sideways) */
.abauth__hp { position: absolute !important; left: auto !important; right: auto !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 0; pointer-events: none; }

/* WooCommerce notices inside the card */
.abauth__notices ul, .abauth__notices .woocommerce-error, .abauth__notices .woocommerce-message, .abauth__notices .woocommerce-info { margin: 0 !important; padding: 12px 14px !important; list-style: none; border-radius: 12px !important; border: 1px solid #FECDCA !important; background: #FEF3F2 !important; color: var(--a-bad) !important; font-size: 13px; line-height: 1.8; box-shadow: none !important; }
.abauth__notices .woocommerce-message, .abauth__notices .woocommerce-info { border-color: #ABEFC6 !important; background: #ECFDF3 !important; color: #067647 !important; }
.abauth__notices li { margin: 0; padding: 0; }
.abauth__notices li + li { margin-top: 4px; }
.abauth__notices ::before { display: none !important; }

@media (max-width: 480px) {
  .abauth { padding: 20px 12px 36px; align-content: start; min-height: 0; }
  .abauth__card { padding: 22px 18px 18px; border-radius: 22px; box-shadow: 0 16px 40px -24px rgba(16, 24, 40, .2); }
  .abauth__title { font-size: 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .abauth__tab, .abauth__input, .abauth__btn, .abauth__meter i { transition: none; }
  .abauth__btn.is-busy::after { animation: none; }
}

.abauth__brand--dark { background: linear-gradient(135deg, #1A2740, #233a74); padding: 12px 18px; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(26, 39, 64, .6); }
