/*
 * Styles for the surfaces on the application layout: the deliberately empty
 * branded root landing and the admin login form. Linked explicitly by
 * layouts/application.html.erb — never via an asset glob (U3 contract), so
 * nothing here leaks into the widget/chat surfaces, and widget.css never
 * leaks in here. Brand tokens (--lc-*) come from tokens.css, linked before
 * this sheet. No inline styles anywhere — CSP lands in U6.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lc-bg);
  font-family: var(--lc-font);
  color: var(--lc-text);
}

/* --- Root landing ------------------------------------------------------ */

.landing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.landing-wordmark {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lc-primary);
}

.landing-footer {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
}

.landing-login-link {
  font-size: 0.8125rem;
  color: var(--lc-text-muted);
  text-decoration: none;
}

.landing-login-link:hover,
.landing-login-link:focus-visible {
  text-decoration: underline;
}

/* --- Login ------------------------------------------------------------- */

.login-card {
  width: 100%;
  max-width: 22rem;
  padding: 2rem;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-radius: 0.75rem;
}

.login-wordmark {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lc-primary);
  text-align: center;
}

.login-flash {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.login-flash--alert { color: #b3261e; }
.login-flash--notice { color: var(--lc-primary); }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-input {
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--lc-border);
  border-radius: 0.5rem;
  background: var(--lc-surface);
  color: var(--lc-text);
}

.login-input:focus {
  outline: 2px solid var(--lc-primary);
  outline-offset: -1px;
  border-color: var(--lc-primary);
}

.login-submit {
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lc-primary);
  background: var(--lc-accent);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.login-submit:hover { filter: brightness(0.96); }
