@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500&family=Newsreader:opsz,wght@6..72,300&display=swap");

:root {
  color-scheme: light;
  --radius: 0.625rem;
  --background: oklch(0.993 0.001 106.424);
  --foreground: oklch(0.141 0.005 285.823);
  --card: oklch(0.995 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --muted: oklch(0.96 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.96 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.705 0.015 286.067);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

p,
h1,
h2 {
  overflow-wrap: anywhere;
}

.login-shell {
  display: flex;
  min-height: 100dvh;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
}

.login-stack {
  width: 100%;
  max-width: 48rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(16rem, 21rem));
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.login-primary {
  width: 100%;
  justify-self: center;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 2rem;
}

.brand-lockup img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.brand-title {
  display: grid;
  gap: 0.125rem;
  text-align: center;
}

.brand-title h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 2.25rem;
  letter-spacing: 0;
}

.brand-title p {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.homepage-copy {
  display: grid;
  gap: 1rem;
  max-width: 21rem;
  margin: 0;
  justify-self: center;
  text-align: left;
}

.homepage-copy p {
  margin: 0;
  color: oklch(0.64 0.014 285.938);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.auth-panel {
  display: grid;
  gap: 1.5rem;
}

.login-button,
.signup-button {
  display: inline-flex;
  width: 100%;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
}

.login-button {
  background: var(--background);
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.login-button:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.signup-button {
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: default;
}

.signup-button span {
  color: var(--muted-foreground);
  font: inherit;
}

.signup-hover {
  display: none;
}

.signup-button:hover .signup-default,
.signup-button:focus-visible .signup-default {
  display: none;
}

.signup-button:hover .signup-hover,
.signup-button:focus-visible .signup-hover {
  display: inline;
}

.legal-copy {
  margin: 1.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.625;
  text-align: center;
}

.legal-copy a:hover {
  color: var(--foreground);
}

@media (max-width: 760px) {
  .login-shell {
    align-items: flex-start;
    padding: 2.5rem 1rem;
  }

  .login-stack {
    max-width: 34rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .homepage-copy {
    justify-self: center;
    text-align: center;
  }
}

.legal-shell {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.legal-document {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-document h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
}

.effective-date {
  margin: 1rem 0 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.legal-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal-section p {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.legal-section .subsection {
  color: var(--foreground);
}

@media (max-width: 520px) {
  .signup-button {
    gap: 0.375rem;
  }
}
