/* accounts.sooquna.com: the website's palette (web/marketing tokens.css:
   cream background, maroon brand) on Shopify's sign-in layout, with the
   admin's Geist type. Logical properties only, so RTL needs no overrides. */
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/static/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/static/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 400; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 500; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-display: swap; font-weight: 600; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* Colours mirror web/marketing/src/styles/tokens.css. */
  --bg: #FAF7F5; --surface: #FFFFFF; --glow: #F1E3E7;
  --text: #191719; --heading: #4D0B22; --muted: #66585E; --faint: #6E6066;
  --border: #E8DFE0; --border-strong: #DFD2D7; --hover: #F7F1EF;
  --primary: #8A1538; --primary-hover: #4D0B22; --primary-text: #FFFFFF; --accent: #8A1538;
  --danger: #A20E34; --danger-bg: #FBEDF0; --notice: #EDF4ED; --notice-text: #2F6B3E; --warning: #F6EFE2; --warning-text: #735A22;
  --ring: rgb(138 21 56 / .18);
  --shadow: 0 0 0 1px rgb(77 11 34 / .06), 0 2px 4px rgb(77 11 34 / .03), 0 18px 44px -12px rgb(77 11 34 / .14);
  --radius: 12px; --radius-sm: 6px;
  --font: "Geist", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light; /* light like the admin */
}
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Geist", system-ui, Tahoma, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-block-size: 100dvh; color: var(--text); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 600px at 50% -10%, var(--glow), transparent 70%), var(--bg);
}
a { color: var(--text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-color: var(--faint); }
::selection { background: var(--primary); color: var(--primary-text); }

/* ---- page frame: a centered card, links under it (Shopify) ---- */
.shell { min-block-size: 100dvh; display: flex; flex-direction: column; align-items: center; padding: clamp(32px, 11vh, 112px) 16px 32px; }
.card {
  inline-size: 100%; max-inline-size: 400px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 32px 28px;
}
.shell.wide { padding-block-start: 40px; }
.shell.wide .card { max-inline-size: 720px; }
@media (max-width: 480px) {
  .shell { padding: 0 0 24px; }
  .card { border-radius: 0; box-shadow: none; border-block-end: 1px solid var(--border); padding: 28px 20px 24px; }
}
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.02em; margin-block-end: 24px; }
.brand img { display: block; inline-size: auto; block-size: 40px; }
/* Sign-in cards (login, signup, reset…) centre the logo; the wide account page keeps it at the start. */
.shell:not(.wide) .brand { display: flex; justify-content: center; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-block-start: 20px; font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--primary); }

/* ---- type ---- */
h1 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin-block: 0 4px; color: var(--heading); }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-block: 0 12px; color: var(--heading); }
h3 { font-size: 14px; font-weight: 600; margin-block: 20px 8px; }
.lede { color: var(--muted); font-size: 13.5px; margin-block: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { display: block; margin-block-start: 6px; color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.45; }
section { border-block-start: 1px solid var(--border); padding-block: 24px 8px; margin-block-start: 16px; }
/* Two-step sign in: each method sits under the heading like the login form (no divider). */
section[data-mfa-panel] { border: 0; padding: 0; margin: 0; }

/* ---- fields ---- */
label { display: block; margin-block-end: 16px; font-size: 13px; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.label-row a:hover { color: var(--primary); }
input, select {
  display: block; inline-size: 100%; block-size: 40px; margin-block-start: 6px; padding: 0 12px; font: 14px var(--font); color: inherit;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
input[readonly] { color: var(--muted); background: var(--hover); }
input[aria-invalid="true"] { border-color: var(--danger); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.password { position: relative; display: block; }
.password input { padding-inline-end: 64px; }
.reveal {
  position: absolute; inset-block: 0; inset-inline-end: 4px; inline-size: auto; block-size: auto; margin: 0; padding: 0 10px;
  border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.reveal:hover { color: var(--text); background: none; }

/* ---- buttons ---- */
button, .button {
  display: flex; align-items: center; justify-content: center; gap: 8px; inline-size: 100%; block-size: 40px; padding: 0 16px;
  margin-block-end: 10px; font: 500 14px var(--font); border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
button:hover, .button:hover { background: var(--hover); }
button.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.link { display: inline; inline-size: auto; block-size: auto; border: 0; background: none; padding: 0; margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
button.link:hover { color: var(--primary); background: none; text-decoration: underline; text-underline-offset: 3px; }
button.link.danger { color: var(--danger); }
button:disabled { opacity: .6; cursor: progress; }
.icon { inline-size: 16px; block-size: 16px; flex: none; }

/* ---- sign-in options (Shopify: passkey, then providers side by side) ---- */
.providers { display: grid; gap: 10px; }
.providers > button, .providers .button { margin: 0; }
.provider-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.provider-row .button { margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-block: 20px; }
.divider::before, .divider::after { content: ""; flex: 1; border-block-start: 1px solid var(--border); }

/* two-step sign in: the email, then the password */
.identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-block-end: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--hover); font-size: 13.5px; }
.identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-two-step].on-email [data-step="password"], [data-two-step].on-password [data-step="email"] { display: none; }

.switch { margin-block: 24px 0; text-align: center; color: var(--muted); }
.switch a { font-weight: 600; text-decoration: none; color: var(--primary); }
.switch a:hover .arrow { transform: translateX(2px); }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
.arrow { display: inline-block; transition: transform .15s; }
.terms { margin-block: 16px 0; text-align: center; color: var(--faint); font-size: 12px; }
.terms a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); }
.terms a:hover { color: var(--primary); }
.links { text-align: center; color: var(--muted); margin-block-start: 16px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--primary); }

/* ---- messages ---- */
.error { color: var(--danger); background: var(--danger-bg); padding: 8px 12px; border-radius: var(--radius-sm); margin-block: 0 12px; font-size: 13px; }
.notice { background: var(--notice); color: var(--notice-text); padding: 10px 12px; border-radius: var(--radius-sm); margin-block: 0 16px; }
.warning { background: var(--warning); color: var(--warning-text); padding: 12px; border-radius: var(--radius-sm); margin-block: 12px; }

/* ---- account page (wide): buttons fit their label, like the admin ---- */
.shell.wide button:not(.link):not(.reveal), .shell.wide .button { display: inline-flex; inline-size: auto; min-inline-size: 120px; }
.shell.wide form > button[type="submit"] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.shell.wide form > button[type="submit"]:hover { background: var(--primary-hover); }
.shell.wide form > button.danger[type="submit"] { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.shell.wide section { padding-block: 24px 4px; }
.shell.wide .warning button { margin-block: 8px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; border-block-end: 1px solid var(--border); }
.scopes { padding-inline-start: 20px; }
.codes { columns: 2; font-family: ui-monospace, "Geist Mono", monospace; padding-inline-start: 24px; }
.captcha { margin-block-end: 16px; min-block-size: 65px; }
.danger-zone h2 { color: var(--danger); }
img[data-totp-qr] { display: block; background: var(--surface); padding: 8px; border-radius: var(--radius-sm); margin-block: 8px; }
code { word-break: break-all; }
