/* Sign-in, sign-up and password recovery: the eye button, the rules list, the code row. Tokens only, light and dark. */
.alert-success { color: var(--status-pass); background: var(--status-pass-bg); border-color: var(--status-pass); }
.auth-brand { color: var(--navy-900); }
.auth-card .field { margin-bottom: 14px; }
.pw-labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pw-forgot { font-size: 12.5px; }
.pw-wrap { position: relative; }
.pw-wrap > input { width: 100%; padding-inline-end: 40px; box-sizing: border-box; }
.pw-eye { position: absolute; top: 50%; inset-inline-end: 3px; transform: translateY(-50%); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: var(--radius-sm); color: var(--ink-500); cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--ink-900); background: var(--paper-100); }
.pw-eye:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 1px; }
.pw-eye .pw-eye-off { display: none; }
.pw-eye.is-shown .pw-eye-on { display: none; }
.pw-eye.is-shown .pw-eye-off { display: inline; }
.pw-hint { font-size: 11.5px; color: var(--ink-500); margin-top: 4px; }
.pw-rules { list-style: none; margin: -6px 0 14px; padding: 0; font-size: 12.5px; color: var(--ink-500); }
.pw-rules li { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.pw-rules li.is-ok { color: var(--status-pass); }
.pw-tick { width: 14px; text-align: center; font-weight: 700; }
.pw-live { font-size: 12.5px; min-height: 18px; margin: -8px 0 6px; color: var(--ink-500); }
.pw-live.is-ok { color: var(--status-pass); }
.rc-title { font-family: var(--font-display); font-size: 20px; color: var(--navy-900); margin: 0 0 8px; }
.rc-title:focus { outline: none; }
.rc-lead { color: var(--ink-700); font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; }
.rc-coderow { display: flex; gap: 8px; align-items: stretch; }
.rc-coderow input { flex: 1; letter-spacing: 6px; font-size: 20px; text-align: center; font-variant-numeric: tabular-nums; min-width: 0; }
.rc-secondary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 420px) { .auth-card { width: auto !important; max-width: 92vw; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pw-eye:hover { color: #fff; background: #1c3050; }
  :root:not([data-theme="light"]) .auth-brand, :root:not([data-theme="light"]) .rc-title { color: #eef2f7; }
  :root:not([data-theme="light"]) .rc-lead { color: #c3ccd8; }
  :root:not([data-theme="light"]) .auth-card a, :root:not([data-theme="light"]) .auth-card .linklike { color: #5fd3bf; }
}
:root[data-theme="dark"] .pw-eye:hover { color: #fff; background: #1c3050; }
:root[data-theme="dark"] .auth-brand, :root[data-theme="dark"] .rc-title { color: #eef2f7; }
:root[data-theme="dark"] .rc-lead { color: #c3ccd8; }
:root[data-theme="dark"] .auth-card a, :root[data-theme="dark"] .auth-card .linklike { color: #5fd3bf; }

/* ---- Sign-in layout (Stage 4): a ledger-paper panel beside the form. Replaces the old centred card on a navy field. ---- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--paper-50); }
.auth-aside { background-color: #0a1526; color: #cdd6e2; display: flex; align-items: center; padding: 48px clamp(24px, 5vw, 72px);
  background-image: linear-gradient(rgba(184, 138, 68, 0.3), rgba(184, 138, 68, 0.3)), repeating-linear-gradient(180deg, transparent 0 35px, rgba(255, 255, 255, 0.045) 35px 36px);
  background-repeat: no-repeat, repeat; background-size: 1px 100%, auto; background-position: clamp(14px, 3vw, 40px) 0, 0 0; }
.auth-aside-inner { max-width: 30em; }
.auth-aside-eyebrow { color: #dcbb84; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.auth-aside-tag { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: #fff; margin: 0 0 24px; }
.auth-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-aside-list li { position: relative; padding-inline-start: 22px; font-size: 15px; line-height: 1.5; color: #e4eaf2; }
.auth-aside-list li::before { content: "\2713"; position: absolute; inset-inline-start: 0; top: 0; color: #dcbb84; font-weight: 700; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-main .auth-card { width: 100%; max-width: 400px; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; padding: 24px 16px; }
}

/* ---- country / language chooser and language switcher (logical properties so right-to-left works without a second sheet) ---- */
.cb-box { position: relative; }
.cb-box > input { width: 100%; box-sizing: border-box; padding-inline-end: 40px; }
.cb-btn { position: absolute; inset-inline-end: 4px; inset-block-start: 50%; transform: translateY(-50%); min-width: 32px; min-height: 32px; border: 0; background: transparent; cursor: pointer; color: var(--ink-500); font-size: 14px; }
.cb-btn:focus-visible { outline: 2px solid var(--focus, #1d4ed8); outline-offset: 1px; }
.cb-list { position: absolute; z-index: 30; inset-inline: 0; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 260px; overflow-y: auto; background: var(--surface, #fff); border: 1px solid var(--ink-300, #cbd5e1); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); }
.cb-list[hidden], .cb-none[hidden] { display: none; }
.cb-opt { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; cursor: pointer; min-height: 24px; overflow-wrap: anywhere; }
.cb-opt.is-active, .cb-opt:hover { background: var(--surface-2, #eef2ff); }
.cb-main { font-weight: 500; }
.cb-sec { color: var(--ink-500); font-size: 12.5px; margin-inline-start: auto; text-align: end; }
.cb-flag { font-size: 16px; }
.cb-none { position: absolute; z-index: 30; inset-inline: 0; margin-top: 4px; padding: 10px 12px; background: var(--surface, #fff); border: 1px solid var(--ink-300, #cbd5e1); border-radius: 8px; font-size: 13px; }
.lang-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin-bottom: 8px; font-size: 12.5px; }
.lang-bar select { max-width: 100%; min-height: 32px; }
.lang-notice { margin: 0 0 12px; padding: 8px 12px; border-inline-start: 4px solid var(--warn, #b45309); background: var(--warn-bg, #fffbeb); font-size: 12.5px; overflow-wrap: anywhere; }
.reg-note { color: var(--ink-500); font-size: 12.5px; margin: 0 0 12px; }
.reg-suggest { margin: 4px 0 12px; font-size: 12.5px; }
.reg-suggest button { margin: 2px 4px 2px 0; }
[dir="rtl"] .reg-suggest button { margin: 2px 0 2px 4px; }
.auth-card, .field label, .ob-err, .pw-hint, .alert { overflow-wrap: anywhere; }
[dir="rtl"] .pw-rules, [dir="rtl"] .auth-aside-list { padding-inline-start: 18px; padding-inline-end: 0; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="password"], [dir="rtl"] #email, [dir="rtl"] #password, [dir="rtl"] #confirm { direction: ltr; text-align: start; }
.cb-opt { flex-wrap: wrap; }
.cb-note { flex-basis: 100%; font-size: 11.5px; color: var(--ink-500); }
.tr-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.tr-col { padding: 8px 12px; border: 1px solid var(--ink-300, #cbd5e1); border-radius: 8px; overflow-wrap: anywhere; }
.tr-status { font-size: 12.5px; font-weight: 600; margin: 8px 0; }
#language-page textarea { width: 100%; box-sizing: border-box; }
.lang-notice-wrap { max-width: 960px; margin: 0 auto; padding: 8px 16px 0; }
