/* =====================================================================
   Miftah — Authentication screen
   (The front page lives in lp.css.) Deep-green aside, white form.
   ===================================================================== */

#auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; background: var(--surface); }
.auth-aside {
  position: relative;
  background: var(--accent-deep);
  color: var(--accent-deep-ink);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}
.auth-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-aside .brand-mark { background: #FFFFFF; color: var(--accent-deep); }
.auth-aside .brand-sub { color: color-mix(in srgb, var(--accent-deep-ink) 68%, transparent); }
.auth-aside .lang-switch { border-color: color-mix(in srgb, var(--accent-deep-ink) 25%, transparent); background: color-mix(in srgb, var(--accent-deep-ink) 8%, transparent); }
.auth-aside .lang-switch button { color: color-mix(in srgb, var(--accent-deep-ink) 72%, transparent); }
.auth-aside .lang-switch button[aria-pressed="true"] { background: #FFFFFF; color: var(--accent-deep); }
.auth-quote { margin-top: auto; }
.auth-quote p { font-size: 17px; line-height: 1.5; max-width: 34ch; }
.auth-quote .auth-by { margin-top: 12px; font-size: 12.5px; color: color-mix(in srgb, var(--accent-deep-ink) 68%, transparent); }
.auth-stats { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--accent-deep-ink) 22%, transparent); padding-top: 18px; }
.auth-stat b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.auth-stat span { font-size: 11.5px; color: color-mix(in srgb, var(--accent-deep-ink) 68%, transparent); }

.auth-form { display: grid; place-items: center; padding: 34px 24px; }
.auth-card { width: 100%; max-width: 360px; }
.auth-card h2 { font-size: 21px; }
.auth-card .auth-sub { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.auth-card .btn-primary { border-radius: var(--r-pill); }
.auth-fields { margin-top: 24px; display: grid; gap: 14px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin-block: 16px; font-size: 11.5px; color: var(--ink-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-note { margin-top: 20px; padding: 9px 11px; border: 1px dashed var(--border-strong); border-radius: var(--r); font-size: 11.5px; color: var(--ink-3); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

@media (max-width: 960px) {
  #auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}

/* The middle of the aside: the key rising over the city, apartment blocks
   on both sides of the Sidi M'Cid bridge (Akram's note: a logo, or
   buildings with the logo). Line work in the aside's own ink. */
.auth-art { flex: 1 1 0; min-height: 150px; margin: 0; display: grid; place-items: center; }
.auth-art svg { width: 100%; height: 100%; max-width: 460px; max-height: 320px; }
.auth-art .art-key { color: var(--accent-deep-ink); }
.auth-art .art-city,
.auth-art .art-bridge { opacity: .5; }
.auth-art .art-windows { opacity: .28; }
