/* Authentication components consume the shared Istiqdam 360 identity tokens. */
html:root {
  --auth-page-bg: var(--ui-canvas);
  --auth-brand: var(--ui-brand);
  --auth-navy: var(--ui-brand-deep);
  --auth-accent: var(--ui-copper);
  --auth-ink: var(--ui-heading);
  --auth-line: var(--ui-border);
  --auth-text: var(--ui-table-text);
  --auth-muted: var(--ui-muted);
  --auth-border: var(--ui-border);
  --auth-surface: var(--ui-surface);
  --auth-surface-solid: var(--ui-surface);
}
body.auth-interface, html:has(.auth-grid) body {
  background: radial-gradient(circle at 100% 0, rgba(var(--ui-brand-rgb), .08), transparent 40%), var(--ui-canvas);
}
.auth-interface .card, html:has(.auth-grid) .auth-card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: 0 16px 48px rgba(20, 44, 58, .1);
}
.auth-interface .authentication-inner > .card::before {
  background: var(--ui-copper);
  height: 3px;
}
.auth-interface .auth-symbol {
  color: var(--ui-brand);
  background: var(--ui-primary-soft);
  box-shadow: none;
}
.auth-interface .form-control:focus {
  border-color: var(--ui-brand);
  box-shadow: var(--ui-focus-ring);
}
html:has(.auth-grid) {
  --ring: var(--ui-focus-ring);
  --navy: var(--ui-brand-deep);
  --primary: var(--ui-brand);
  --primary-dark: var(--ui-brand-hover);
  --bg: var(--ui-canvas);
}
html:has(.auth-grid) .auth-side {
  background: linear-gradient(145deg, var(--ui-brand-deep), var(--ui-sidebar-active));
  color: #fff;
}
html:has(.auth-grid) .auth-side :is(.brand-title, .brand-sub, .mini .t, .mini .v) { color: #fff; }
