/* Dedicated account interfaces, using the existing Rawaa design tokens. */
.auth-stage {
  position: relative;
  isolation: isolate;
  background: var(--c-fig);
  color: var(--c-cream);
  overflow: hidden;
  padding: clamp(108px, 10vw, 145px) 0 clamp(42px, 6vw, 84px);
}
.auth-stage__background { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.auth-stage__background img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.auth-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg,#2a1520e8,#2a1520a8 48%,#2a15207a),linear-gradient(0deg,#2a152066,transparent 35%); pointer-events: none; }
html[lang="ar"] .auth-stage::after { background: linear-gradient(255deg,#2a1520e8,#2a1520a8 48%,#2a15207a),linear-gradient(0deg,#2a152066,transparent 35%); }
.auth-shell { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 92px); align-items: center; }
.auth-editorial { min-width: 0; padding-block: 20px; color: var(--c-cream); }
.auth-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: var(--fs-sm); color: var(--c-cream-2); margin-bottom: 30px; }
.auth-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.auth-eyebrow { font-size: .77rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 13px; }
.auth-editorial .auth-eyebrow { color: var(--c-apricot); }
.auth-eyebrow > span { margin-inline-end: 5px; }
.auth-editorial h1 { font: 500 clamp(2.7rem, 5vw, 5.1rem)/1.04 var(--font-body); letter-spacing: -.045em; color: var(--c-cream); }
.auth-editorial h1 em { color: var(--c-apricot); }
.auth-editorial__description { max-width: 40ch; color: var(--c-cream-2); margin-top: 20px; font-size: var(--fs-md); line-height: 1.65; }
.auth-editorial__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-cream); text-decoration: underline; text-underline-offset: 5px; }
.auth-editorial__link svg { width: 18px; height: 18px; }
.auth-card { min-width: 0; width: 100%; max-width: 500px; justify-self: end; background: var(--c-paper); color: var(--c-ink); border-radius: clamp(20px, 3vw, 32px); border: 1px solid #fbf6f075; padding: clamp(24px, 3.6vw, 44px); box-shadow: 0 22px 70px #14080e40; }
.auth-card__heading { margin-bottom: 22px; }


.auth-card .auth-eyebrow { color: var(--c-clay); margin-bottom: 7px; }
.auth-card h2 { font-size: clamp(1.85rem, 3.1vw, 2.6rem); line-height: 1.15; font-weight: 500; letter-spacing: -.025em; }
.auth-card__heading > p:last-child { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 10px; line-height: 1.55; }
.auth-form { display: grid; gap: 17px; }
.auth-preview-note { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--c-bg); color: var(--c-muted); font-size: .78rem; line-height: 1.5; }
.auth-preview-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.auth-field { display: grid; gap: 7px; font-size: var(--fs-sm); font-weight: 600; min-width: 0; }
.auth-field small { font-size: .78rem; font-weight: 400; color: var(--c-muted); line-height: 1.5; }
.auth-field__control { display: flex; align-items: center; gap: 10px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 14px; min-height: 50px; padding-inline: 13px; transition: border-color .2s, background .2s; }
.auth-field__control:focus-within { border-color: var(--c-clay); background: var(--c-paper); }
.auth-field__control > svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--c-muted); }
.auth-field__control input { min-width: 0; width: 100%; min-height: 48px; background: transparent; border: none; outline: none; font-size: 1rem; font-weight: 400; padding: 0; }
.auth-field__control input::placeholder { color: var(--c-muted); opacity: .85; }
.auth-field__control input[type="email"], .auth-field__control input[data-auth-password], .auth-field__control input[data-auth-confirm] { direction: ltr; text-align: start; }
.auth-field__control input[aria-invalid="true"] { color: var(--c-clay); }
.auth-password-toggle { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 38px; color: var(--c-muted); border-radius: 8px; }
.auth-password-toggle svg { width: 20px; height: 20px; }
.auth-eye-slash { opacity: 0; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { opacity: 1; }
.auth-password-toggle:focus-visible { outline: 2px solid var(--c-clay); outline-offset: 1px; }
.auth-submit { min-height: 52px; justify-content: center; width: 100%; margin-top: 3px; font-size: .95rem; }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-submit svg { width: 18px; height: 18px; }
.auth-status { padding: 12px; border: 1px solid var(--c-line); background: var(--c-sand); border-radius: 12px; font-size: var(--fs-sm); line-height: 1.5; }
.auth-status[hidden] { display: none; }
.auth-card__alternate { border-top: 1px solid var(--c-line); margin-top: 23px; padding-top: 20px; display: grid; gap: 11px; text-align: center; }
.auth-card__alternate p { color: var(--c-muted); font-size: var(--fs-sm); }
.auth-outline { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--c-fig); border-radius: 99px; padding: 10px 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-fig); transition: background .2s, color .2s; }
.auth-help { display: block; text-align: center; color: var(--c-muted); font-size: var(--fs-sm); margin-top: 17px; text-decoration: underline; text-underline-offset: 4px; }
@media (hover:hover) { .auth-outline:hover { color: var(--c-cream); background: var(--c-fig); } .auth-password-toggle:hover { color: var(--c-ink); } }
html[lang="ar"] .auth-eyebrow, html[lang="ar"] .auth-editorial h1, html[lang="ar"] .auth-card h2 { letter-spacing: normal; }
html[lang="ar"] .auth-editorial h1 { line-height: 1.25; }
html[lang="ar"] .auth-editorial__link svg { transform: scaleX(-1); }
/* Standalone administration surface: no storefront cart, menu or public admin links. */
.auth-admin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 10% 15%,#45243a 0%,transparent 58%),var(--c-fig); color: var(--c-cream); }
.auth-admin__header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 25px; border-bottom: 1px solid #fbf3ea24; }
.auth-admin__brand { display: flex; align-items: center; gap: 14px; }
.auth-admin__brand em { font: italic 400 2.4rem/1 "Instrument Serif", Georgia, serif; }
.auth-admin__brand > span { color: var(--c-cream-2); font-size: var(--fs-xs); padding-inline-start: 14px; border-inline-start: 1px solid #fbf3ea47; }
.auth-admin__tools { display: flex; align-items: center; gap: 13px; }
.auth-admin__return { display: inline-flex; align-items: center; gap: 7px; color: var(--c-cream-2); font-size: var(--fs-sm); }
.auth-admin__return svg { width: 18px; height: 18px; }
.auth-admin__language { display: grid; place-items: center; width: 40px; height: 40px; padding: 2px; border: 1px solid #fbf3ea47; border-radius: 50%; overflow: hidden; }
.auth-admin__language img { width: 100%; height: 100%; border-radius: 50%; }
.auth-admin__main { flex: 1; display: grid; align-items: center; padding-block: clamp(40px, 7vw, 100px); }
.auth-editorial--admin { position: relative; }


.auth-admin-notice { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--c-line); display: flex; align-items: flex-start; gap: 9px; color: var(--c-muted); font-size: .78rem; line-height: 1.55; }
.auth-admin-notice svg { width: 17px; height: 17px; flex: 0 0 17px; }
.auth-admin__footer { padding-block: 20px; border-top: 1px solid #fbf3ea24; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: var(--fs-xs); color: var(--c-cream-2); }
.auth-admin__footer a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .auth-stage { padding: 92px 0 32px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 530px; }
  .auth-editorial { padding: 0; text-align: center; }
  .auth-breadcrumb { justify-content: center; margin-bottom: 15px; font-size: .82rem; }
  .auth-editorial .auth-eyebrow { font-size: .7rem; margin-bottom: 9px; }
  .auth-editorial h1 { font-size: clamp(1.9rem, 7.4vw, 3.3rem); line-height: 1.15; }
  .auth-editorial__description { margin: 12px auto 0; font-size: .91rem; }
  .auth-editorial__link { margin-top: 12px; }
  .auth-card { justify-self: center; max-width: 500px; padding: 23px; border-radius: 24px; }
  .auth-card__heading { margin-bottom: 19px; }

  .auth-form { gap: 15px; }
  .auth-admin__header { padding-block: 18px; }
  .auth-admin__brand { gap: 8px; }
  .auth-admin__brand em { font-size: 1.95rem; }
  .auth-admin__brand > span { padding-inline-start: 8px; }
  .auth-admin__tools { gap: 9px; }
  .auth-admin__return > span { display: none; }
  .auth-admin__return { padding: 10px; border: 1px solid #fbf3ea47; border-radius: 50%; }
  .auth-admin__main { padding-block: 30px; }

}
@media (max-width: 350px) {
  .auth-card { padding: 18px; }
  .auth-admin__brand > span { display: none; }
  .auth-admin__footer { flex-wrap: wrap; }
}

/* Login/register: the cream body background must not show through the
   shared footer's rounded upper corners. Keep its original geometry. */
body[data-page="auth"] #main {
  background-color: var(--c-fig);
}

/* Customer account headings: one text column and the full official lockup.
   Size the heading by its actual available space, not the viewport alone.
   Keep the artwork at the physical right in both languages. */
.auth-card .auth-card__heading--branded {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 25%, 104px);
  align-items: center;
  column-gap: clamp(8px, 3%, 15px);
  direction: ltr;
}
.auth-card__heading-copy {
  min-width: 0;
  container-type: inline-size;
}
.auth-card .auth-card__heading--branded h1 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 2rem);
  font-size: clamp(.9rem, 10.8cqi, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-wrap: nowrap;
}
.auth-card .auth-card__heading-copy > p {
  font-size: clamp(.79rem, .95vw, .9rem);
  color: var(--c-muted);
  margin: 8px 0 0;
  line-height: 1.55;
  text-wrap: pretty;
}
.auth-card__brand-logo {
  align-self: center;
  justify-self: end;
  display: block;
  width: 100%;
  height: auto;
  max-width: 104px;
  object-fit: contain;
}
html[lang="ar"] .auth-card__heading-copy {
  direction: rtl;
  text-align: right;
}
html[lang="ar"] .auth-card .auth-card__heading--branded h1 {
  letter-spacing: normal;
  line-height: 1.3;
}
@media (max-width: 820px) {
  .auth-card .auth-card__heading--branded {
    grid-template-columns: minmax(0, 1fr) clamp(58px, 23%, 94px);
    column-gap: 10px;
  }
  .auth-card .auth-card__heading--branded h1 {
    font-size: clamp(1rem, 5.2vw, 2rem);
    font-size: clamp(.9rem, 10.8cqi, 2rem);
  }
  .auth-card__brand-logo { max-width: 94px; }
}
@media (max-width: 350px) {
  .auth-card .auth-card__heading--branded {
    grid-template-columns: minmax(0, 1fr) 56px;
    column-gap: 8px;
  }
  .auth-card .auth-card__heading-copy > p { font-size: .78rem; }
}
