/* Huckleberry: the berry is a deep blue-purple, so the palette is built
   around that rather than a generic brand violet. */
:root {
  --berry: #5b3a8e;
  --berry-dark: #3d2463;
  --berry-light: #8a63c4;
  --ink: #1f1630;
  --muted: #6f6383;
  --surface: #ffffff;
  --page: #f6f3fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page) radial-gradient(
    ellipse at 50% -10%, rgba(91, 58, 142, 0.22), transparent 60%);
}

.card {
  width: 100%;
  max-width: 25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(31, 22, 48, 0.06),
              0 12px 32px rgba(61, 36, 99, 0.12);
}

.signin-logo {
  display: block;
  width: min(100%, 13rem);
  height: auto;
  margin: -1rem auto -0.5rem;
}

.signin-mark {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: -0.75rem auto 0.5rem;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Google's sign-in button, to their identity guidelines: their mark on their
   colours, at their proportions. Deliberately not themed to the berry palette
   -- the whole value of this button is that it looks the same everywhere, and
   the guidelines do not permit recolouring it. Roboto is the specified face;
   it is listed first and falls back to the system stack rather than pulling a
   webfont from Google's CDN for one line of text. */
.gsi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #747775;
  border-radius: 4px;
  cursor: pointer;
}

.gsi-logo { width: 18px; height: 18px; flex: none; }

/* The guidelines describe hover and pressed as a state layer over the button,
   not a different background colour. */
.gsi:hover { background: #f7f8f8; box-shadow: 0 1px 2px rgba(31, 22, 48, 0.12); }
.gsi:active { background: #eef0f1; }

.gsi:focus-visible {
  outline: 2px solid var(--berry-light);
  outline-offset: 2px;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
