/* Minimal login layout: colors and rhythm match auth / site.css (theme.css variables). */
.lg-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, var(--bg-soft) 0%, var(--bg) 45%, var(--bg-2) 100%);
}

.lg-main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.lg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.lg-brand {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.lg-nav a {
  color: var(--brand-2);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lg-nav a:hover {
  color: var(--brand);
}

.lg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 12px 28px rgba(var(--text-rgb), 0.08);
}

.lg-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.lg-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}

.lg-muted {
  margin: 0.4rem 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.lg-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lg-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.lg-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lg-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.14);
  outline: none;
}

.lg-input:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
}

.lg-err {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--danger);
}

.lg-submit {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--surface);
  background: linear-gradient(130deg, var(--brand) 0%, var(--brand-2) 100%);
  cursor: pointer;
  box-sizing: border-box;
}

.lg-submit:hover {
  filter: brightness(1.04);
}

.lg-submit:focus-visible {
  outline: 3px solid var(--surface);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--brand-2), 0 0 0 5px rgba(var(--surface-rgb), 0.95);
}

.lg-alert {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(var(--danger-rgb), 0.28);
  background: rgba(var(--danger-rgb), 0.08);
  color: var(--danger);
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  .lg-input {
    transition: none;
  }
}

@media (forced-colors: active) {
  .lg-submit {
    forced-color-adjust: none;
    background: ButtonFace;
    color: ButtonText;
    border: 2px solid ButtonText;
  }

  .lg-input:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}
