/* The User Control Panel (/ucp) in the agnoss Design System, as far as it could be looked at.

   The gateway adds this stylesheet to UCP's pages (default.conf). UCP's sign-in page is restyled in full. The pages behind
   its sign-in only get the agnoss typeface: nobody has looked at them with these colours yet, and a colour that lands on
   one of UCP's dark panels unseen could make text unreadable. Extend this file once someone has, one checked rule at a time.
   The tokens are the same as in theme.css. */

@font-face { font-family: "Source Serif 4"; src: url("/agnoss-theme/fonts/SourceSerif4-Variable.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/agnoss-theme/fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/agnoss-theme/fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/agnoss-theme/fonts/DMMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --surface: #faf9f5;
  --surface-raised: #ffffff;
  --surface-sunken: #f0eee6;
  --line: #e3e0d5;
  --line-control: #8e8a80;
  --ink: #1c1b19;
  --ink-muted: #6f6c64;
  --primary: #00457f;
  --primary-hover: #00335f;
  --primary-soft: #e3f0f8;
  --on-primary: #ffffff;
  --link: #0a6290;
  --focus: #0f90d0;
  --success: #4f6b3c;
  --success-soft: #e8eedf;
  --warning: #8a6418;
  --warning-soft: #f7edd5;
  --danger: #a3202f;
  --danger-soft: #f8e1e2;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px #1c1b190f;
  --shadow-md: 0 1px 3px #1c1b190f, 0 8px 24px #1c1b1914;
  --focus-ring: 0 0 0 2px #faf9f5, 0 0 0 4px #0f90d0;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Every UCP page: the typeface ---------- */

body, .btn, button, input, select, textarea, optgroup { font-family: var(--font-sans); }

/* ---------- The sign-in page (the only page that has #login-window) ---------- */

body:has(#login-window) { background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
#login-window { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; color: var(--ink); }
#login-window h2.header { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
#login-window .form-control { background-color: var(--surface-raised); border: 1px solid var(--line-control); border-radius: var(--radius-sm); color: var(--ink); box-shadow: none; }
#login-window .form-control::placeholder { color: var(--ink-muted); opacity: 1; }
#login-window .form-control:focus { border-color: var(--focus); box-shadow: var(--focus-ring); outline: 0 none; }
#login-window .input-group-addon { background: var(--surface-sunken); border: 1px solid var(--line-control); border-radius: var(--radius-sm); color: var(--ink-muted); }
#login-window .btn-default { background: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius-md); color: var(--on-primary); font-weight: 500; }
#login-window .btn-default:hover:not(:disabled), #login-window .btn-default:focus:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
#login-window .btn-default:disabled { opacity: .45; }
#login-window .extras, #login-window .extras td { color: var(--ink-muted); }
#login-window .alert { border: 0; border-radius: var(--radius-md); }
#login-window .alert-danger { background-color: var(--danger-soft); color: var(--danger); }
#login-window .alert-warning { background-color: var(--warning-soft); color: var(--warning); }
#login-window .onoffswitch-inner:before { background-color: var(--primary); color: var(--on-primary); }
body:has(#login-window) .text-internal-blue { color: var(--primary) !important; }
body:has(#login-window) #footer { background-color: var(--surface-sunken); }
body:has(#login-window) #footer hr { margin: 0; border-top: 1px solid var(--line); }
body:has(#login-window) #footer #footer_content, body:has(#login-window) #footer #footer_content a { color: var(--ink-muted); }
