:root {
  color-scheme: light;
  --bg: #f4f7f3;
  --panel: #ffffff;
  --text: #172016;
  --muted: #61705e;
  --line: #d9e2d6;
  --green: #216b43;
  --green-dark: #174d31;
  --blue: #2456a6;
  --red: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 107, 67, 0.12), transparent 28rem),
    linear-gradient(135deg, #f4f7f3 0%, #eef3f7 100%);
  color: var(--text);
}

.shell {
  width: min(100%, 34rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1.5rem 4rem rgba(23, 32, 22, 0.12);
  padding: clamp(1.25rem, 5vw, 2rem);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.brand-row:has(#pageTitle[hidden]) {
  display: none;
}

.mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.intro,
.state p,
.footer {
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #fbfdfb;
}

input:focus {
  outline: 3px solid rgba(36, 86, 166, 0.18);
  border-color: var(--blue);
}

button {
  width: 100%;
  min-height: 3.15rem;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.state {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.quiet-loading {
  min-height: 1px;
  padding: 0;
}

.spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1rem;
  border: 0.25rem solid #dbe6d8;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.success {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-size: 1.7rem;
  font-weight: 900;
}

.secondary-link {
  color: var(--blue);
  font-weight: 800;
}

.message {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  color: var(--red);
  font-weight: 700;
}

.footer {
  text-align: center;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
