/* Login, lost-password and reset-password views of /my-account/ for visitors who are not logged in, in the look of
   the platform's /login: a navy side panel with the logo and the brand line, the form on white (phones: logo above
   the form). Loaded only there by himam-platform-pages.php, which also adds the frame markup (.hm-auth) and leaves
   out the site header/footer. The WooCommerce forms themselves are unchanged. Hand-written (not generated).
   Brand: navy #24255C, pink #F06CAB, sky #32B8E4, surface #F5F6FA. */

body.hm-auth-page {
  --hm-navy: #24255C; --hm-ink: #1E1F4D; --hm-muted: #626584; --hm-pink: #F06CAB; --hm-sky: #32B8E4;
  --hm-surface: #F5F6FA; --hm-border: rgb(36 37 92 / .15);
  --hm-body: "IBM Plex Sans Arabic", Tahoma, system-ui, sans-serif;
  --hm-head: "Rubik", Tahoma, system-ui, sans-serif;
  background: #fff;
}

/* The theme's page title ("My account"), its form heading and its lost-password line: the frame replaces them.
   "Reset email sent" is said by the confirmation heading. */
body.hm-auth-page .my-account-header,
body.hm-auth-page .account-login-inner > h3,
body.hm-auth-page form.login > .lost_password,
body.hm-auth-page .woocommerce > .woocommerce-message { display: none !important; }
body.hm-auth-page .page-wrapper,
body.hm-auth-page .page-wrapper > .container,
body.hm-auth-page .account-container,
body.hm-auth-page .account-login-inner { max-width: none; margin: 0; padding: 0; }

/* ── Frame: side panel | form ── */
.hm-auth { display: grid; min-height: 100vh; min-height: 100dvh; background: #fff; font-family: var(--hm-body); color: var(--hm-ink); }
.hm-auth :focus-visible { outline: 2px solid var(--hm-navy); outline-offset: 2px; }
.hm-auth-side { position: relative; display: none; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 3rem; background: var(--hm-navy); color: #fff; }
.hm-auth-side :focus-visible { outline-color: var(--hm-pink); }
/* the panel takes a third of the width and the white form side the rest (60-30-10: it was nearly half) */
@media (min-width: 64rem) {
  .hm-auth { grid-template-columns: minmax(20rem, 1fr) 2fr; }
  .hm-auth-side { display: flex; }
}
.hm-auth-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .08) 1px, transparent 1.5px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 40%, #000, transparent);
}
/* the logo larger (owner, 2026-11-09: «كبر اللوجو»): 128px beside the form, 80px above it on phones — the image is 160px */
.hm-auth-logo { position: relative; display: inline-flex; align-self: flex-start; border-radius: 1.25rem; }
.hm-auth-logo img { display: block; width: 8rem; height: 8rem; border-radius: 1.25rem; }
.hm-auth-tagline { position: relative; max-width: 24rem; margin: 0; font-family: var(--hm-head); font-size: clamp(1.75rem, 1rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.375; color: #fff; }

.hm-auth-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4.5rem 1rem 3rem; }
@media (min-width: 40rem) { .hm-auth-main { padding-inline: 2rem; } }
.hm-auth-logo-m { align-self: center; margin-bottom: 2rem; }
.hm-auth-logo-m img { width: 5rem; height: 5rem; }
@media (min-width: 64rem) { .hm-auth-logo-m { display: none; } }
.hm-auth-back {
  position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem;
  padding-inline: .5rem; border-radius: .5rem; font-size: .875rem; font-weight: 700; color: var(--hm-muted); text-decoration: none;
}
.hm-auth-back:hover { color: var(--hm-navy); }
@media (min-width: 40rem) { .hm-auth-back { top: 1.5rem; right: 2rem; } }

.hm-auth-box { display: flex; flex-direction: column; gap: 1.75rem; width: 100%; max-width: 28rem; }
/* the form in a card: a thin border and a soft shadow (the owner, 2026-11-05) */
.hm-auth-box { max-width: 32rem; padding: 2rem 1.25rem; border: 1px solid rgb(36 37 92 / .12); border-radius: 1.5rem; background: #fff; box-shadow: 0 1px 2px rgb(36 37 92 / .04), 0 14px 34px -18px rgb(36 37 92 / .28); }
@media (min-width: 40rem) { .hm-auth-box { padding: 2.5rem 2.25rem; } }
.hm-auth-head h1 { margin: 0; font-family: var(--hm-head); font-size: 1.875rem; font-weight: 800; line-height: 1.3; color: var(--hm-navy); }
.hm-auth-head p { margin: .5rem 0 0; font-size: 1rem; line-height: 1.7; color: var(--hm-muted); }

/* ── Messages (errors, "password changed") ── */
.hm-auth .woocommerce-notices-wrapper:empty { display: none; }
.hm-auth .woocommerce-error,
.hm-auth .woocommerce-message,
.hm-auth .woocommerce-info {
  margin: 0; padding: .75rem 1rem; list-style: none; border: 0; border-radius: .75rem; background: var(--hm-surface);
  box-shadow: inset 0 0 0 1px var(--hm-pink); font-size: .875rem; font-weight: 700; line-height: 1.7; color: var(--hm-navy);
}
.hm-auth .woocommerce-message { box-shadow: inset 0 0 0 1px var(--hm-sky); }
.hm-auth .woocommerce-error li, .hm-auth .woocommerce-message li { margin: 0; }
.hm-auth .message-container { max-width: none; margin: 0; padding: 0; text-align: start; color: inherit; }
.hm-auth .message-icon { display: none; }
.hm-auth .woocommerce-error a, .hm-auth .woocommerce-message a { color: var(--hm-navy); text-decoration: underline; }

/* ── Forms: one column; on the login form "remember me" and "forgot password" share a row ── */
.hm-auth form.login,
.hm-auth form.lost_reset_password { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 1rem; margin: 0; padding: 0; border: 0; }
.hm-auth form.login > *,
.hm-auth form.lost_reset_password > * { grid-column: 1 / -1; width: auto; margin: 0; padding: 0; float: none; }
.hm-auth form .clear { display: none; }
.hm-auth form.lost_reset_password > p:first-child { font-size: 1rem; line-height: 1.7; color: var(--hm-muted); }
/* that first line is the page's lead: keep it close to the heading when no message sits between them */
.hm-auth-head + .woocommerce-notices-wrapper:empty + form.lost_reset_password > p:first-child { margin-top: -1.25rem; }
.hm-auth form label { display: block; margin: 0 0 .375rem; font-size: .875rem; font-weight: 700; line-height: 1.5; color: var(--hm-navy); }
.hm-auth form label .required { display: none; }
body.hm-auth-page .hm-auth .input-text {
  width: 100%; height: auto; min-height: 3rem; margin: 0; padding: 0 1rem; border: 1px solid var(--hm-border); border-radius: .75rem;
  background: #fff; box-shadow: none; font-family: var(--hm-body); font-size: 1rem; color: var(--hm-ink); transition: border-color .2s, box-shadow .2s;
}
body.hm-auth-page .hm-auth .input-text:focus { border-color: var(--hm-navy); box-shadow: 0 0 0 2px rgb(36 37 92 / .15); outline: none; }
/* Usernames, e-mails, phones and passwords are left to right throughout (owner's choice, 2026-11-06): typed and lined
   up from the left, all alike; the labels and the Arabic fields (the name) stay on the right.
   .password-input: the password while «إظهار» shows it (WooCommerce turns it into a text field). */
body.hm-auth-page .hm-auth #username,
body.hm-auth-page .hm-auth #user_login,
body.hm-auth-page .hm-auth input[type="email"],
body.hm-auth-page .hm-auth input[type="tel"],
body.hm-auth-page .hm-auth input[type="password"],
body.hm-auth-page .hm-auth .password-input input { direction: ltr; text-align: left; }

/* show / hide password (the button WooCommerce adds): a text button at the field's end (its right, the field being
   left to right), so the password starts on the left like the other fields */
.hm-auth .password-input { position: relative; display: block; }
body.hm-auth-page .hm-auth .password-input .input-text { padding-left: 1rem; padding-right: 5rem; }
body.hm-auth-page .hm-auth .show-password-input {
  position: absolute; top: 0; bottom: 0; right: .5rem; left: auto; display: inline-flex; align-items: center; height: 2.25rem; margin: auto 0;
  padding: 0 .75rem; border: 0; border-radius: .5rem; background: none; box-shadow: none; cursor: pointer; visibility: visible;
}
body.hm-auth-page .hm-auth .show-password-input::before { content: none; }
body.hm-auth-page .hm-auth .show-password-input::after { content: "إظهار"; font-family: var(--hm-body); font-size: .75rem; font-weight: 700; color: var(--hm-muted); }
body.hm-auth-page .hm-auth .show-password-input.display-password::after { content: "إخفاء"; }
body.hm-auth-page .hm-auth .show-password-input:hover::after { color: var(--hm-navy); }

.hm-auth form.login > p.form-row:not(.woocommerce-form-row) { display: contents; }
.hm-auth .woocommerce-form-login__rememberme {
  grid-column: 1; grid-row: 3; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin: 0;
  font-size: .875rem; font-weight: 500; color: var(--hm-ink); cursor: pointer;
}
.hm-auth .woocommerce-form-login__rememberme input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--hm-navy); }
.hm-auth form.login > .hm-auth-forgot { grid-column: 2; grid-row: 3; align-self: center; }
.hm-auth .woocommerce-form-login__submit { grid-column: 1 / -1; grid-row: 4; }
.hm-auth-forgot, .hm-auth-help a { font-size: .875rem; font-weight: 700; color: var(--hm-navy); text-decoration: none; text-underline-offset: 4px; }
.hm-auth-forgot:hover, .hm-auth-help a:hover { color: var(--hm-navy); text-decoration: underline; }

body.hm-auth-page .hm-auth button.button {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3.5rem; margin: 0; padding: 0 1.5rem;
  border: 0; border-radius: 999px; background: var(--hm-pink); box-shadow: none; font-family: var(--hm-body); font-size: 1.0625rem;
  font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--hm-navy); cursor: pointer; transition: filter .2s;
}
body.hm-auth-page .hm-auth button.button:hover { filter: brightness(1.05); color: var(--hm-navy); }

/* password strength (reset form) */
.hm-auth .woocommerce-password-strength { margin-top: .5rem; padding: .375rem .75rem; border-radius: .5rem; font-size: .8125rem; font-weight: 700; text-align: start; }
.hm-auth .woocommerce-password-hint { display: block; margin-top: .375rem; font-size: .8125rem; line-height: 1.7; color: var(--hm-muted); }

/* ── Under the form: buying needs no account, and help ── */
.hm-auth-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--hm-surface); }
.hm-auth-alt p { flex: 1 1 13rem; margin: 0; font-size: .875rem; line-height: 1.7; color: var(--hm-muted); }
.hm-auth-alt strong { display: block; font-weight: 800; color: var(--hm-navy); }
.hm-auth-browse {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.125rem; border: 1px solid rgb(36 37 92 / .3); border-radius: 999px;
  background: #fff; font-size: .875rem; font-weight: 800; color: var(--hm-navy); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s;
}
.hm-auth-browse:hover { border-color: var(--hm-navy); background: var(--hm-navy); color: #fff; }
.hm-auth-help { margin: 0; text-align: center; font-size: .875rem; color: var(--hm-muted); }

/* «حساب جديد» (himam-lms.php): shown instead of the login form while the address ends in #signup */
.hm-signup { display: none; }
.hm-signup:target { display: block; }
.hm-auth-box:has(.hm-signup:target) .hm-auth-head,
.hm-auth-box:has(.hm-signup:target) .woocommerce-form-login,
.hm-auth-box:has(.hm-signup:target) .account-login-inner > h3,
.hm-auth-box:has(.hm-signup:target) .hm-auth-alt { display: none !important; }
.hm-signup h2 { margin: 0; font-family: var(--hm-head); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 800; line-height: 1.3; color: var(--hm-navy); }
.hm-signup-lead { margin: .5rem 0 1.5rem; font-size: .9375rem; color: var(--hm-muted); }
.hm-signup-form { display: grid; gap: 1.125rem; margin: 0; padding: 0; border: 0; }
.hm-signup-row { display: grid; gap: .5rem; margin: 0; }
.hm-signup-row label { font-size: .875rem; font-weight: 700; color: var(--hm-navy); }
.hm-signup-row input { width: 100%; min-height: 3rem; margin: 0; padding: 0 1rem; border: 1px solid var(--hm-line, #E6E8F2); border-radius: .875rem; background: #fff; font: inherit; font-size: 1rem; color: var(--hm-ink); box-shadow: none; }
.hm-signup-row input:focus { border-color: var(--hm-sky); outline: 2px solid rgb(50 184 228 / .25); outline-offset: 0; }
.hm-signup-submit { width: 100%; min-height: 3.25rem; margin: .25rem 0 0; border: 0; border-radius: 999px; background: var(--hm-pink); color: var(--hm-navy); font: inherit; font-size: 1.0625rem; font-weight: 800; cursor: pointer; }
.hm-signup-submit:hover { filter: brightness(1.05); }
.hm-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── v60d (the owner, 2026-11-11: «make it like other inputs animation title»): the sign-in, new account, lost and
   new password fields' labels float, like the platform's fields (himam-admin.css .hm-float). The label sits on the
   field's top border; in an empty field it rests inside, like a placeholder, and rises on focus or once typed in.
   Lists (select) keep it on the border. The fields carry a blank placeholder that tells an empty one (himam-accounts.php
   prints it; WooCommerce's own fields get it from a line after them). Browsers without :has() keep it on the border. ── */
body.hm-auth-page .hm-auth .woocommerce-form-row,
body.hm-auth-page .hm-auth .hm-signup-row { position: relative; }
body.hm-auth-page .hm-auth .woocommerce-form-row > label,
body.hm-auth-page .hm-auth .hm-signup-row > label {
  position: absolute; top: 0; inset-inline-start: .75rem; z-index: 2; max-width: calc(100% - 1.5rem); margin: 0; padding: 0 .375rem;
  border-radius: 4px; background: #fff; font-size: .75rem; font-weight: 700; line-height: 1.25; color: #5b6080;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  transform: translateY(-50%); transition: top .15s ease, font-size .15s ease, color .15s ease;
}
body.hm-auth-page .hm-auth .woocommerce-form-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .woocommerce-form-row:has(> .password-input > input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .hm-signup-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label {
  top: 1.5rem; font-size: .9375rem; font-weight: 500; color: #8a8fac;
}
body.hm-auth-page .hm-auth .hm-signup-row:has(> textarea:placeholder-shown:not(:focus)) > label { top: 1.5rem; font-size: .9375rem; font-weight: 500; color: #8a8fac; }
body.hm-auth-page .hm-auth .woocommerce-form-row:has(:focus) > label,
body.hm-auth-page .hm-auth .hm-signup-row:has(:focus) > label { color: var(--hm-navy); }
body.hm-auth-page .hm-auth .hm-signup-row > label .hm-signup-opt { font-weight: 500; }
/* the lists in the field's own white, so the label's patch matches them */
body.hm-auth-page .hm-auth .hm-signup-row > select { background-color: #fff; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { body.hm-auth-page .hm-auth .woocommerce-form-row > label, body.hm-auth-page .hm-auth .hm-signup-row > label { transition: none; } }
/* the label's patch takes the field's own ground at night (himam-night-shell.css paints the fields #1b1c3a) */
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row > label { background: #1b1c3a; color: #b2b4c4; }
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row:has(> .password-input > input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row:has(> textarea:placeholder-shown:not(:focus)) > label { color: #8d90ad; }
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row:has(:focus) > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row:has(:focus) > label { color: #e3e5f2; }

/* ── v60e (the owner, 2026-11-11): «في مشكلة في الالوان» — at night the lists keep the night look's own ground (v60d
   made them white for the day look only); «اللوجو اجعله ضخم» — the logo large, as a sharp drawing (SVG,
   .hm-auth-mark): in the middle of the navy panel with the line under it on a computer; a navy tile almost twice as
   big above the form on phones and tablets. ── */
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row > select { background-color: #1b1c3a; color: #d2d3e9; }
.hm-auth-logo .hm-auth-mark { width: auto; border-radius: 0; }
@media (min-width: 64rem) {
  .hm-auth-side { justify-content: center; align-items: center; gap: 2.75rem; text-align: center; }
  .hm-auth-side .hm-auth-logo { align-self: center; border-radius: 1.5rem; }
  .hm-auth-side .hm-auth-mark { height: min(21rem, 42vh); }
  .hm-auth-side .hm-auth-tagline { max-width: 24rem; }
}
.hm-auth-logo-m:has(.hm-auth-mark) { display: grid; place-items: center; width: 9rem; height: 9rem; margin-bottom: 1.75rem; border-radius: 2rem; background: var(--hm-navy); box-shadow: 0 16px 34px -18px rgb(36 37 92 / .7); }
.hm-auth-logo-m .hm-auth-mark { height: 6.75rem; }
@media (min-width: 64rem) { .hm-auth-logo-m:has(.hm-auth-mark) { display: none; } }
html.hm-night .hm-auth-logo-m:has(.hm-auth-mark) { box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }

/* ── a soft day look (the owner, 2026-11-11: «اللون الابيض في الوضع النهاري مؤذي للعين خفف حدته»): the sign-in page's
   ground a soft grey instead of pure white; the form's card stays white on it. ── */
html:not(.hm-night) body.hm-auth-page .hm-auth { background: #F2F4F8; }

/* ── v60g (the owner, 2026-11-11: «make the sign in or signup center of screen»): one column on every screen, as on
   phones — the navy panel gives way; the logo's navy tile and the form's card sit in the middle of the screen (across,
   and down while they fit; a long new-account form simply scrolls). ── */
@media (min-width: 64rem) {
  .hm-auth { grid-template-columns: 1fr; }
  .hm-auth-side { display: none; }
  .hm-auth-logo-m:has(.hm-auth-mark) { display: grid; width: 10.5rem; height: 10.5rem; margin-bottom: 2rem; border-radius: 2.25rem; }
  .hm-auth-logo-m .hm-auth-mark { height: 8rem; }
}
/* short screens (laptops 768 px tall): a smaller tile and less room above, so the sign-in card fits without scrolling */
@media (min-width: 64rem) and (max-height: 50rem) {
  .hm-auth-main { padding-top: 3.25rem; padding-bottom: 1.5rem; }
  .hm-auth-logo-m:has(.hm-auth-mark) { width: 7rem; height: 7rem; margin-bottom: 1rem; border-radius: 1.5rem; }
  .hm-auth-logo-m .hm-auth-mark { height: 5.25rem; }
  .hm-auth-box { padding-top: 1.75rem; padding-bottom: 1.75rem; }
}

/* ── v60h (the owner, 2026-11-11, «as senior UI/UX: logo make back of form, make the form as blur · the white color
   was annoying, not comfortable, lower its brightness»): the logo, large, behind the form; the form's card a frosted
   glass over it (the logo shows through as a soft glow); no pure white anywhere — a cool tinted ground with the
   brand's pink and sky glows, translucent fields. The fields' titles: inside the field, rising to its top on focus or
   once typed in (a title on the border needs a patch, which shows as a white tag on glass). ── */
html:not(.hm-night) body.hm-auth-page .hm-auth {
  background:
    radial-gradient(60rem 40rem at 12% 8%, rgb(240 108 171 / .20), transparent 60%),
    radial-gradient(56rem 40rem at 88% 92%, rgb(50 184 228 / .22), transparent 60%),
    #E5E9F2;
}
/* the logo: fixed behind everything, in the middle of the screen */
body.hm-auth-page .hm-auth::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("brand/himam-logo-navy.svg?v=2") no-repeat center top / auto 140vh;
  opacity: .82;
}
body.hm-auth-page .hm-auth-side, body.hm-auth-page .hm-auth-logo-m { display: none !important; }
body.hm-auth-page .hm-auth-main { z-index: 1; }
/* the card: frosted glass */
body.hm-auth-page .hm-auth .hm-auth-box {
  border: 1px solid rgb(255 255 255 / .6); background: rgb(255 255 255 / .52);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .55) inset, 0 28px 70px -30px rgb(36 37 92 / .5);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { body.hm-auth-page .hm-auth .hm-auth-box { background: rgb(246 247 251 / .94); } }
/* the fields: translucent, the title inside */
body.hm-auth-page .hm-auth .input-text,
body.hm-auth-page .hm-auth .hm-signup-row input,
body.hm-auth-page .hm-auth .hm-signup-row select {
  min-height: 3.5rem; padding-top: 1.25rem; padding-bottom: .25rem; border: 1px solid rgb(36 37 92 / .12); border-radius: .9rem;
  background-color: rgb(255 255 255 / .62); box-shadow: none;
}
body.hm-auth-page .hm-auth .hm-signup-row textarea { padding-top: 1.75rem; border: 1px solid rgb(36 37 92 / .12); background-color: rgb(255 255 255 / .62); }
body.hm-auth-page .hm-auth .input-text:focus,
body.hm-auth-page .hm-auth .hm-signup-row :is(input, select, textarea):focus { border-color: #32B8E4; background-color: rgb(255 255 255 / .8); box-shadow: 0 0 0 3px rgb(50 184 228 / .22); outline: none; }
body.hm-auth-page .hm-auth .woocommerce-form-row > label,
body.hm-auth-page .hm-auth .hm-signup-row > label {
  top: .5rem; inset-inline-start: 1rem; padding: 0; background: none; transform: none; font-size: .75rem;
}
body.hm-auth-page .hm-auth .woocommerce-form-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .woocommerce-form-row:has(> .password-input > input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .hm-signup-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label { top: 50%; transform: translateY(-50%); }
body.hm-auth-page .hm-auth .hm-signup-row:has(> textarea:placeholder-shown:not(:focus)) > label { top: 1.1rem; }
body.hm-auth-page .hm-auth .woocommerce-form-row > label,
body.hm-auth-page .hm-auth .hm-signup-row > label { transition: top .15s ease, font-size .15s ease, color .15s ease, transform .15s ease; }
/* the parts inside the card: translucent too */
body.hm-auth-page .hm-auth .hm-auth-alt { background: rgb(255 255 255 / .38); }
body.hm-auth-page .hm-auth .hm-role { background: rgb(255 255 255 / .46); border-color: rgb(36 37 92 / .12); }
body.hm-auth-page .hm-auth .hm-role.is-on, body.hm-auth-page .hm-auth .hm-role:has(input:checked) { background: rgb(255 255 255 / .82); }

/* night: a deep navy ground, the white logo behind, a dark glass card */
html.hm-night body.hm-auth-page .hm-auth {
  background:
    radial-gradient(60rem 40rem at 12% 8%, rgb(240 108 171 / .14), transparent 60%),
    radial-gradient(56rem 40rem at 88% 92%, rgb(50 184 228 / .13), transparent 60%),
    #14152E;
}
html.hm-night body.hm-auth-page .hm-auth::before { background-image: url("brand/himam-logo-white.svg?v=2"); opacity: .7; }
html.hm-night body.hm-auth-page .hm-auth .hm-auth-box { border-color: rgb(255 255 255 / .12); background: rgb(30 31 66 / .5); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 28px 70px -30px rgb(0 0 0 / .7); }
html.hm-night body.hm-auth-page .hm-auth .input-text,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row :is(input, select, textarea) { border: 1px solid rgb(255 255 255 / .14); background-color: rgb(255 255 255 / .07); color: #e3e5f2; }
html.hm-night body.hm-auth-page .hm-auth .input-text:focus,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row :is(input, select, textarea):focus { border-color: #32B8E4; background-color: rgb(255 255 255 / .1); }
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row > label { background: none; }
html.hm-night body.hm-auth-page .hm-auth .hm-auth-alt { background: rgb(255 255 255 / .05); }
html.hm-night body.hm-auth-page .hm-auth .hm-role { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
html.hm-night body.hm-auth-page .hm-auth .hm-role.is-on, html.hm-night body.hm-auth-page .hm-auth .hm-role:has(input:checked) { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .5); }

/* the logo drawn larger than the screen, its top at the top: the mark frames the card on both sides and «HGT» falls below
   the screen's edge; the password's «إظهار» at the field's other end, clear of its title */
body.hm-auth-page .hm-auth .show-password-input { right: auto; left: .5rem; }
body.hm-auth-page .hm-auth .password-input .input-text { padding-left: 5rem; padding-right: 1rem; }

/* ── v60i (the owner, 2026-11-11: «ضع زر النهاري والليلي في شاشة تسجيل الدخول»): the day / night switch at the
   screen's other top corner, a small glass button like the card (the moon by day, the sun at night: the night script's
   own lines) ── */
body.hm-auth-page .hm-auth .hm-theme-btn {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  padding: 0; border: 1px solid rgb(36 37 92 / .14); border-radius: 999px; background: rgb(255 255 255 / .55); color: #24255C;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: background-color .15s ease;
}
body.hm-auth-page .hm-auth .hm-theme-btn:hover { background: rgb(255 255 255 / .85); }
body.hm-auth-page .hm-auth .hm-theme-btn:focus-visible { outline: 2px solid #F06CAB; outline-offset: 2px; }
@media (min-width: 40rem) { body.hm-auth-page .hm-auth .hm-theme-btn { top: 1.5rem; left: 2rem; } }
html.hm-night body.hm-auth-page .hm-auth .hm-theme-btn { border-color: rgb(255 255 255 / .16); background: rgb(255 255 255 / .08); color: #e3e5f2; }
html.hm-night body.hm-auth-page .hm-auth .hm-theme-btn:hover { background: rgb(255 255 255 / .14); }

/* v130 (2026-11-15, the owner: «في حساب جديد استغل العرض كامل، جاي الشكل طولي») — on computers the new-account card is
   wide and its fields two by two; the type cards, notes, error line and button across */
@media (min-width: 64rem) {
  body.hm-auth-page .hm-auth .hm-auth-box:has(.hm-signup:target) { max-width: 60rem; }
  body.hm-auth-page .hm-auth .hm-signup-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
  body.hm-auth-page .hm-auth .hm-signup-form > :is(div:not(.hm-signup-part), .hm-signup-error, .hm-signup-submit),
  body.hm-auth-page .hm-auth .hm-signup-form .hm-signup-note { grid-column: 1 / -1; }
  body.hm-auth-page .hm-auth .hm-signup-form > .hm-signup-part:not([hidden]) { display: contents; }
  body.hm-auth-page .hm-auth .hm-signup-form > .hm-signup-submit { justify-self: center; width: min(100%, 24rem); }
  /* the wider type cards: the name above its line (they ran together on one line) */
  body.hm-auth-page .hm-auth .hm-role { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .125rem; }
}

/* v131 (2026-11-15, the owner: «يجب أن يظهر الفورم كامل») — on computers the new-account card fits the screen */
@media (min-width: 64rem) {
  body.hm-auth-page .hm-auth .hm-auth-main:has(.hm-signup:target) { padding-top: 3.25rem; padding-bottom: 1.25rem; }
  body.hm-auth-page .hm-auth .hm-auth-box:has(.hm-signup:target) { padding-top: 1.75rem; padding-bottom: 1.5rem; gap: 1rem; }
  body.hm-auth-page .hm-auth .hm-signup-lead { margin: .25rem 0 1rem; }
  body.hm-auth-page .hm-auth .hm-signup-form { align-items: start; row-gap: .875rem; }
  body.hm-auth-page .hm-auth .hm-signup-row textarea { height: 3.5rem; min-height: 3.5rem; }
}
/* short laptop screens (768 px high): a little tighter still */
@media (min-width: 64rem) and (max-height: 50rem) {
  body.hm-auth-page .hm-auth .hm-auth-main:has(.hm-signup:target) { padding-top: 2.75rem; }
  body.hm-auth-page .hm-auth .hm-auth-box:has(.hm-signup:target) { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  body.hm-auth-page .hm-auth .hm-signup h2 { font-size: 1.5rem; }
  body.hm-auth-page .hm-auth .hm-signup-lead { margin-bottom: .75rem; }
  body.hm-auth-page .hm-auth .hm-signup-form { row-gap: .75rem; }
  body.hm-auth-page .hm-auth .hm-role { padding-block: .5rem; }
}

/* ── v165 (2026-11-17, the owner: «نوع الخط غير واضح في تسجيل الدخول وعمل حساب في الوضع الليلي والنهاري غمق الخط»):
   the words of both screens darker and heavier, by day and at night; the glass card and its fields less see-through,
   so the logo behind no longer runs through the words ── */
body.hm-auth-page .hm-auth .hm-auth-box { background: rgb(255 255 255 / .8); }
html.hm-night body.hm-auth-page .hm-auth .hm-auth-box { background: rgb(24 25 56 / .86); }
body.hm-auth-page .hm-auth .hm-auth-head p,
body.hm-auth-page .hm-auth .hm-signup-lead,
body.hm-auth-page .hm-auth form.lost_reset_password > p:first-child,
body.hm-auth-page .hm-auth .hm-auth-alt p,
body.hm-auth-page .hm-auth .hm-auth-help { font-weight: 600; color: #3a3d66; }
body.hm-auth-page .hm-auth .hm-auth-back { font-weight: 700; color: #3a3d66; }
body.hm-auth-page .hm-auth .woocommerce-form-login__rememberme { font-weight: 700; color: #24255C; }
body.hm-auth-page .hm-auth .show-password-input::after { color: #24255C; }
body.hm-auth-page .hm-auth .hm-role small { font-weight: 600; color: #3a3d66; }
/* the fields: what is typed navy and heavier; their titles darker, floated or resting */
body.hm-auth-page .hm-auth .input-text,
body.hm-auth-page .hm-auth .hm-signup-row :is(input, select, textarea) { border-color: rgb(36 37 92 / .2); background-color: rgb(255 255 255 / .9); font-weight: 600; color: #1E1F4D; }
body.hm-auth-page .hm-auth .woocommerce-form-row > label,
body.hm-auth-page .hm-auth .hm-signup-row > label { font-weight: 700; color: #3a3d66; }
body.hm-auth-page .hm-auth .woocommerce-form-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .woocommerce-form-row:has(> .password-input > input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .hm-signup-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
body.hm-auth-page .hm-auth .hm-signup-row:has(> textarea:placeholder-shown:not(:focus)) > label { font-weight: 600; color: #4a4d75; }
body.hm-auth-page .hm-auth .woocommerce-form-row:has(:focus) > label,
body.hm-auth-page .hm-auth .hm-signup-row:has(:focus) > label { color: #24255C; }
body.hm-auth-page .hm-auth .hm-signup-row > label .hm-signup-opt { font-weight: 600; color: #4a4d75; }
body.hm-auth-page .hm-auth .hm-gender { border-color: rgb(36 37 92 / .2); background: rgb(255 255 255 / .9); }
body.hm-auth-page .hm-auth .hm-gender-l { color: #3a3d66; }

html.hm-night body.hm-auth-page .hm-auth .hm-auth-head h1,
html.hm-night body.hm-auth-page .hm-auth .hm-signup h2 { color: #fff; }
html.hm-night body.hm-auth-page .hm-auth .hm-auth-head p,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-lead,
html.hm-night body.hm-auth-page .hm-auth form.lost_reset_password > p:first-child,
html.hm-night body.hm-auth-page .hm-auth .hm-auth-alt p,
html.hm-night body.hm-auth-page .hm-auth .hm-auth-help,
html.hm-night body.hm-auth-page .hm-auth .hm-auth-back { color: #d9dcee; }
html.hm-night body.hm-auth-page .hm-auth .hm-auth-alt strong,
html.hm-night body.hm-auth-page .hm-auth .hm-auth-help a,
html.hm-night body.hm-auth-page .hm-auth .hm-auth-forgot,
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-login__rememberme { color: #fff; }
html.hm-night body.hm-auth-page .hm-auth .show-password-input::after { color: #e9ebf7; }
html.hm-night body.hm-auth-page .hm-auth .hm-role b { color: #fff; }
html.hm-night body.hm-auth-page .hm-auth .hm-role small { color: #c9cce3; }
html.hm-night body.hm-auth-page .hm-auth .input-text,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row :is(input, select, textarea) { border-color: rgb(255 255 255 / .2); background-color: rgb(255 255 255 / .09); color: #f6f7fc; }
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row > label { color: #dfe2f2; }
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row:has(> .password-input > input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row:has(> input:placeholder-shown:not(:focus):not(:-webkit-autofill)) > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row:has(> textarea:placeholder-shown:not(:focus)) > label { color: #c3c6de; }
html.hm-night body.hm-auth-page .hm-auth .woocommerce-form-row:has(:focus) > label,
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row:has(:focus) > label { color: #fff; }
html.hm-night body.hm-auth-page .hm-auth .hm-signup-row > label .hm-signup-opt { color: #c3c6de; }
html.hm-night body.hm-auth-page .hm-auth .hm-gender { border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .09); }
html.hm-night body.hm-auth-page .hm-auth .hm-gender-l { color: #c3c6de; }
