:root {
  color-scheme: light;
  --brand-primary: #a18647;
  --brand-primary-dark: #8b6f32;
  --brand-soft: rgba(161, 134, 71, 0.14);
  --text-base: #0f172a;
  --text-muted: #64748b;
  --text-muted-light: #94a3b8;
  --bg-page: linear-gradient(135deg, #f7f1e4, #fcfaf4);
  --radius-lg: 20px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-base);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Landing layout */
header.site-header {
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

header.site-header .brand {
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--brand-primary);
}

header.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button,
header.site-header nav a,
header.site-header nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
}

.button.primary,
header.site-header nav a.primary,
header.site-header nav button.primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 16px 35px rgba(161, 134, 71, 0.24);
}

.button.secondary,
header.site-header nav a.secondary,
header.site-header nav button.secondary {
  background: #fff;
  border: 1px solid rgba(161, 134, 71, 0.32);
  color: var(--brand-primary-dark);
}

.button.primary:hover,
.button.secondary:hover,
header.site-header nav a.primary:hover,
header.site-header nav a.secondary:hover {
  transform: translateY(-1px);
}

.button.full {
  width: 100%;
  justify-content: center;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.inline-form .button {
  margin: 0;
}

.auth-choice {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

main.landing {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
}

.landing-card {
  width: 100%;
  max-width: 840px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  padding: 3.5rem 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .landing-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.landing-card h1 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.2;
  font-weight: 660;
  color: var(--brand-primary-dark);
}

.landing-card p.lead {
  margin: 1.5rem 0 2.3rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-row .primary,
.cta-row .secondary {
  text-decoration: none;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.feature-list li span.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

footer.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.flash {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
}

.flash.notice {
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
  border: 1px solid rgba(161, 134, 71, 0.3);
}

.flash.alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* Auth card */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
  padding: 2.6rem;
  box-sizing: border-box;
}

.auth-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-intro h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
}

.auth-intro .subtitle {
  margin: 0.6rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(161, 134, 71, 0.32);
  background: #fcf7ee;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(161, 134, 71, 0.18);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 15px 30px rgba(161, 134, 71, 0.24);
  transition: transform 0.15s ease;
}

.auth-form .primary:hover {
  transform: translateY(-1px);
}

.divider {
  text-align: center;
  margin: 2rem 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(161, 134, 71, 0.45);
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: rgba(161, 134, 71, 0.25);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.auth-form .hint {
  margin: -0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted-light);
  text-align: center;
}

.auth-footer {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--brand-primary);
  font-weight: 600;
}
