/* ==========================================================================
   HRMS AUTH — the agency's sign-in and setup screens
   --------------------------------------------------------------------------
   Pushed ONLY by the tenant-facing pages that do not use layouts/app:
   auth/login, register, forgot-password, reset-password, verify-email,
   staff/login and tenant/setup-*. layouts/auth is shared with the ADMIN
   login, so nothing may go into that layout itself — each page links this
   file, and admin/auth/login never does.

   It brings those pages onto the workspace's teal palette (see
   hrms-tenant.css) and supplies the brand lockup (.tn-brand) they share
   with the workspace shell.

   --primary is safe on :root here (the theme's .dark block never defines
   it). Neutral variables are the opposite: the theme's .dark redefines
   them, so they are written under html:not(.dark), never :root, or the
   later rule would silently replace the dark palette.
   ========================================================================== */

:root { --primary: 15 74 68; --primary-rgb: 15, 74, 68; }
html.dark { --primary: 95 179 166; --primary-rgb: 95, 179, 166; }

html:not(.dark) {
    --body-bg: 239 245 243;
    --default-text-color: 23 33 30;
    --default-border: 221 231 228;
    --input-border: 200 214 209;
    --text-muted: 92 108 103;
    --light: 232 240 237;
}

::selection { background: rgba(15, 74, 68, .16); }

/* Brand lockup: a teal mark + the product name (same as the workspace). */
.tn-brand { display: inline-flex; align-items: center; gap: .625rem; min-width: 0; color: rgb(var(--default-text-color)); text-decoration: none; }
.tn-brand__mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem;
    border-radius: .5rem; background-color: #0f4a44; color: #fff; font-size: 1.05rem; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.tn-brand__word { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.tn-brand--lg .tn-brand__mark { width: 2.5rem; height: 2.5rem; border-radius: .625rem; font-size: 1.3rem; }
.tn-brand--lg .tn-brand__word { font-size: 1.25rem; }
/* On the dark brand panel: a light mark, white name. */
.tn-brand--on-dark { color: #fff; }
.tn-brand--on-dark .tn-brand__mark { background-color: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
html.dark .tn-brand { color: rgb(226 236 232); }
html.dark .tn-brand__mark { background-color: #13615a; }

/* The plain theme screens (forgot / reset / verify, staff sign-in): teal
   buttons and links come from --primary; these settle the rest. */
.tn-auth-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.ti-btn.bg-primary:hover:not(:disabled) { background-color: #0a3733; }
.form-control:focus { border-color: rgb(var(--primary)) !important; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16) !important; }
