/* Tokens taken 1:1 from the CMS admin login (dcLegacyApp layout/admin), so centralAuth reads as part of the CMS. */
@font-face { font-family: Barlow; src: url(fonts/barlow-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #00121e;
  --ink-soft: #3b4952;
  --primary: #bccf00;
  --white: #ffffff;
  --light: #f3f3f3;
  --mid: #dcdcdc;
  --line: #b5b5b5;
  --ground: #d9dddd;
  --danger: #cf1300;
  --danger-tint: #fbeae8;
  --shadow: 0 5px 10px #b5b5b5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  font-family: Barlow, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
}

::selection { background: var(--primary); color: var(--ink); }

h1, h2 { font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons: CMS .button / .button--primary / .button--bordered */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px 12px;
  border: 1px solid var(--light);
  border-radius: 0;
  background: var(--light);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.button--primary { background: var(--primary); border-color: var(--primary); }
.button--bordered { background: transparent; border-color: var(--ink); }
.button--primary:hover, .button--bordered:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button--block { width: 100%; }
.button svg { width: 18px; height: 18px; flex: none; }

/* Host: the registrable domain carries the weight, the subdomain is quieter (like a browser address bar). */
.host { font-weight: 600; overflow-wrap: anywhere; }
.host__sub { font-weight: 400; color: var(--ink-soft); }
/* Wrap between subdomain and domain first, inside a part only when it is longer than a line. */
.host__sub, .host__reg { display: inline-block; max-width: 100%; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.code { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* Page layout: the CMS login card. */
.wrap { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.card { width: 400px; max-width: 100%; background: var(--white); padding: 30px 40px 40px; box-shadow: var(--shadow); }
.card__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.card h1 { font-size: 30px; line-height: 1.15; }
.card__body { display: flex; flex-direction: column; gap: 20px; }
.card form { margin: 0; }
.lead { font-size: 17px; }
.target { background: var(--light); padding: 14px 16px; font-size: 22px; line-height: 1.25; }
.target small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; overflow-wrap: anywhere; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.note .icon { margin-top: 1px; color: var(--ink); }
.note--strong { color: var(--ink); background: var(--light); padding: 10px 12px; }
.error { background: var(--danger-tint); color: var(--ink); padding: 12px 14px; display: flex; gap: 10px; }
.error .icon { color: var(--danger); margin-top: 2px; }
.meta { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 480px) { .card { padding: 24px 20px 28px; } .card h1 { font-size: 26px; } }
