/* Back-office sign-in (app/Views/office/auth/login.php; AUT-01, AUT-03, AUT-05). Tokens and logical
   properties only.
   - 900 px and up: the forest brand panel with the logo and the tagline at the start (44 % wide),
     then the card with the form on the light page.
   - 768–899 px: the card alone, with the logo and `EN | عربي` above it.
   - Under 768 px, the owner's phone: the whole page takes the forest theme's tokens, the brand hero
     (logo, `EN | عربي`, "Owner dashboard", the heading) heads it and the form follows. */
.bb-login { display: flex; flex-direction: column; min-block-size: 100vh; min-block-size: 100dvh; background: var(--surface); color: var(--ink); }
.bb-login-side { display: none; border-radius: 0; padding: 56px; }
.bb-login-side > .bb-brand-panel__content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); block-size: 100%; text-align: center; }
.bb-login-side .bb-logo { block-size: 132px; }
.bb-login-tag { display: flex; flex-direction: column; gap: var(--space-2); }
.bb-login-tag .bb-lead { color: var(--ink-muted); }
.bb-login-main { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding-block: var(--space-3) var(--space-6); padding-inline: 20px; }
.bb-login-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); align-self: stretch; min-block-size: 48px; }
.bb-login-mark { display: flex; }
.bb-login-mark .bb-logo { block-size: 32px; }
.bb-login-hero { display: none; }
.bb-login-card { display: flex; flex-direction: column; gap: 20px; inline-size: 100%; max-inline-size: 440px; margin-block: auto; }
.bb-login-head { display: flex; flex-direction: column; gap: 6px; }
.bb-login-form { display: flex; flex-direction: column; gap: 20px; }
.bb-login-who { display: flex; align-items: center; gap: var(--space-3); }
.bb-login-who-text { display: flex; flex-direction: column; min-inline-size: 0; }
.bb-login-who-name { font: 600 16px/22px var(--font-sans); }
.bb-login-who-name:lang(ar) { font-family: var(--font-arabic); }
.bb-login-who-number { color: var(--ink-muted); font: var(--type-body-sm); font-variant-numeric: tabular-nums; text-align: start; }
.bb-login-another { align-self: flex-start; min-block-size: 44px; display: inline-flex; align-items: center; }
.bb-login-foot { margin: 0; font: 400 13px/20px var(--font-sans); color: var(--ink-muted); }
.bb-login-foot:lang(ar) { font-family: var(--font-arabic); font-size: 14px; line-height: 22px; }
.bb-login .bb-input:disabled { opacity: .5; }

@media (min-width: 900px) {
  .bb-login { flex-direction: row; }
  .bb-login-side { display: block; flex: 0 0 44%; }
  .bb-login-main { padding-block: var(--space-6) 28px; padding-inline: 56px; }
  .bb-login-top { justify-content: flex-end; }
  .bb-login-mark { display: none; }
  .bb-login-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-card); }
}

/* The owner's phone: the forest theme's tokens (tokens.css) on the whole page. */
@media (max-width: 767.98px) {
  .bb-login {
    color-scheme: dark;
    --surface: var(--forest-700);
    --surface-card: var(--forest-900);
    --ink: var(--taupe-100);
    --ink-muted: var(--taupe-500);
    --brand: var(--taupe-700);
    --brand-hover: var(--taupe-500);
    --on-brand: var(--forest-900);
    --accent: var(--taupe-700);
    --line: var(--forest-500);
    --line-strong: var(--forest-300);
    --focus: var(--taupe-100);
    --danger: #f0a08c;
  }
  .bb-login-main { gap: var(--space-6); padding: 0; }
  .bb-login-top, .bb-login-head, .bb-login-foot { display: none; }
  .bb-login-hero { display: block; align-self: stretch; border-radius: 0; padding-block: var(--space-4) var(--space-8); padding-inline: 20px; }
  .bb-login-hero > .bb-brand-panel__content { display: flex; flex-direction: column; gap: 40px; }
  .bb-login-hero-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: 48px; }
  .bb-login-hero-top .bb-logo { block-size: 32px; }
  .bb-login-card { margin-block: 0 auto; padding-inline: 20px; padding-block-end: var(--space-8); }
}
