:root {
  --ink: #17201b;
  --muted: #647067;
  --paper: #f6f1e6;
  --panel: #fffaf0;
  --green: #1f6f4a;
  --lime: #d7ff63;
  --dark: #24302a;
  --line: rgba(23, 32, 27, 0.14);
  --red: #b94839;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 255, 99, 0.30), transparent 22rem),
    linear-gradient(135deg, #ece2cd 0%, #f7f1e6 56%, #dfe9d8 100%);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
}

.page {
  min-height: 100vh;
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.login-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 24px 70px rgba(36, 48, 42, 0.16);
}

.intro,
.auth-panel {
  min-width: 0;
  padding: clamp(32px, 4.5vw, 48px);
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.kicker {
  margin: 0;
  color: var(--green);
  font: 800 0.76rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  max-width: 100%;
  font-size: clamp(2.6rem, 4.4vw, 3.7rem);
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--paper);
}

.lead {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.5;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.scope-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.50);
  color: var(--ink);
  font: 750 0.74rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.auth-panel {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.auth-panel .kicker { color: var(--lime); }
.copy {
  margin: 0;
  color: rgba(246, 241, 230, 0.76);
  font-size: 0.98rem;
  line-height: 1.52;
}

.lock {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(215, 255, 99, 0.13);
  color: var(--lime);
  font-size: 0.92rem;
}

.google-button {
  margin-top: 8px;
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font: 850 0.9rem ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.google-button:hover { background: #fffaf1; transform: translateY(-1px); }
.google-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font: 900 0.94rem Arial, sans-serif;
}

.message {
  min-height: 1.25rem;
  margin: 0;
  color: #ffb0a7;
  font: 750 0.8rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 820px) {
  .login-card { grid-template-columns: 1fr; }
  .auth-panel { border-radius: 0; }
}

@media (max-width: 520px) {
  .page { width: min(100% - 18px, 960px); padding: 12px 0; }
  .login-card { border-radius: 22px; }
  .intro, .auth-panel { padding: 26px; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2.05rem; }
}
