/* Hand-written polish for the OpenRun login page, kept out of inline <style>
   so the strict login-page CSP (style-src 'self') is satisfied. Mirrors the
   console design layer (ui/console/static/css/style.css). Served alongside the
   generated tailwind/daisyui output. */

/* Brand accent bar under the page title, fading in to the dark green */
.login-title::after {
  content: "";
  display: block;
  width: 4.3em;
  height: 3px;
  margin-top: 0.3rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--color-secondary) 5%, transparent),
    var(--color-secondary)
  );
}

/* Focused inputs glow softly in the brand color */
.input {
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.input:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 15%, transparent);
}

/* Visible keyboard focus everywhere, in the brand color */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* The card lifts very slightly, matching the console card hover */
.card.border {
  box-shadow: 0 2px 10px -4px color-mix(in oklab, var(--color-secondary) 24%, transparent);
}

/* OAuth authorize/consent pages: the request details as a compact
   label/value list, long urls wrap */
.oauth-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.oauth-details dt {
  color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
}
.oauth-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* One-line caution about an unverified client */
.oauth-note {
  margin: 0;
  padding-left: 0.6rem;
  border-left: 3px solid var(--color-warning);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-warning);
}
