:root {
  color-scheme: light;
  --cream: #f5f0e6;
  --panel: #fffdf8;
  --ink: #272b29;
  --secondary: #525a53;
  --border: #d9d6cc;
  --night: #111715;
  --amber: #f3cf7a;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, form { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #7c5715; outline-offset: 4px; }

.sign-in-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  padding: 14px;
}

.sign-in {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px clamp(24px, 4vw, 68px);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand img { display: block; border-radius: 7px; }

.sign-in-content {
  align-self: center;
  width: min(100%, 392px);
  margin: 48px auto;
}

.sign-in h1, .dashboard h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.sign-in-content > p { margin-top: 16px; color: var(--secondary); }
.sign-in-content > .notice { color: #8c2421; }

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 28px;
  padding: 10px 12px;
  border: 1px solid #747775;
  border-radius: 6px;
  background: #fff;
  color: #1f1f1f;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.google-button:hover { background: #f7f8f7; }
.site-footer, .dashboard-footer { color: var(--secondary); font-size: 0.875rem; }
.site-footer:empty { min-height: 28px; }

.brand-panel {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 520px;
  padding: clamp(30px, 5vw, 75px);
  overflow: hidden;
  border-radius: 18px;
  color: var(--cream);
  background:
    linear-gradient(0deg, #111715 1%, #111715d9 23%, #11171508 61%),
    url("/assets/forge.png") center / cover no-repeat,
    var(--night);
}

.brand-panel-copy { max-width: 482px; }

.brand-panel h2 {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: clamp(2.25rem, 4.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.brand-panel p { max-width: 39ch; margin-top: 20px; color: #ece8de; }

.dashboard-page { min-height: 100svh; display: flex; flex-direction: column; }
.dashboard-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.account { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-email { color: var(--secondary); font-size: 0.875rem; overflow-wrap: anywhere; }
.sign-out {
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid #7b8077;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}

.sign-out:hover { background: var(--cream); }
.dashboard, .dashboard-footer { width: min(100% - 40px, 1080px); margin-inline: auto; }
.dashboard { flex: 1; padding-block: clamp(44px, 8vw, 95px); }
.dashboard-intro { margin-top: 14px; color: var(--secondary); }

.reports {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.reports h2 { padding: 18px 24px; border-bottom: 1px solid var(--border); font-size: 1.125rem; }
.empty-state { padding: clamp(36px, 7vw, 76px) 24px; text-align: center; }
.empty-state h3 { margin-bottom: 6px; font-size: 1.05rem; }
.empty-state p { color: var(--secondary); }
.dashboard-footer { padding-bottom: 24px; }

@media (max-width: 760px) {
  .sign-in-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sign-in { min-height: 440px; padding: 20px 14px; }
  .sign-in-content { margin-block: 44px; }
  .brand-panel { min-height: 320px; padding: 30px 24px; }
  .brand-panel h2 { font-size: clamp(2rem, 8vw, 3.15rem); }
}

@media (max-width: 480px) {
  .account { align-items: end; flex-direction: column; gap: 6px; }
}
