/* The sign-in page: the dashboard's palette and type, on one panel. */
:root {
  color-scheme: light dark;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --bg: #fae4ca;
  --card: #fdf0e0;
  --ink: #4a2801;
  --ink-2: #6f4c2b;
  --rule: #e6c7a0;
  --track: #f0d3b0;
  --focus: #0a625c;
  --s1: #0f766e;
  --s2: #1d4ed8;
  --s4: #b5179e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1409;
    --card: #2a1c0e;
    --ink: #f4e4cc;
    --ink-2: #b89c78;
    --rule: #43301b;
    --track: #3a2814;
    --focus: #2dd4bf;
    --s1: #2dd4bf;
    --s2: #60a5fa;
    --s4: #f0abfc;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: var(--bg);
  color: var(--ink);
  font: 300 0.9375rem / 1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
.panel {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 32px 28px;
  background: var(--card);
  border-radius: 14px;
  text-align: center;
}
/* Three dots, as in the dashboard's brand. */
.mark {
  width: 34px;
  height: 20px;
  background:
    radial-gradient(circle at 6px 10px, var(--s1) 4px, transparent 4.5px),
    radial-gradient(circle at 17px 5px, var(--s2) 4px, transparent 4.5px),
    radial-gradient(circle at 28px 11px, var(--s4) 4px, transparent 4.5px);
}
h1 { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.015em; }
.lead { color: var(--ink-2); font-size: 0.9rem; max-width: 30ch; }
.options {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0 4px;
}
.fine { color: var(--ink-2); font-size: 0.78rem; max-width: 34ch; }

/* The Google button, following Google's sign-in branding: a white or dark surface with its own mark. */
.g-signin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #747775;
  color: #1f1f1f;
  font: 500 14px/1 Roboto, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.g-signin:hover { background: #f8f9fa; }
.g-signin:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.g-signin svg { flex: 0 0 auto; }
@media (prefers-color-scheme: dark) {
  .g-signin { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  .g-signin:hover { background: #1f1f20; }
}

/* The SilverPush button, copied from auth.silverpush.live. Its rules forbid restyling it. */
.sp-signin{
  display:inline-flex; align-items:center; gap:10px;
  height:40px; padding:0 16px; border-radius:8px;
  background:#fff; border:1px solid #dadce0; color:#3c4043;
  font:500 14px/1 "Roboto",-apple-system,"Segoe UI",sans-serif;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background .15s ease, box-shadow .15s ease;
}
.sp-signin:hover{ background:#f7f9f9; box-shadow:0 1px 3px rgba(21,32,52,.14); }
.sp-signin:focus-visible{ outline:2px solid #007568; outline-offset:2px; }
.sp-signin svg{ flex:0 0 auto; }

/* Dark surfaces */
@media (prefers-color-scheme: dark){
  .sp-signin{ background:#1b2a28; border-color:#2f4a46; color:#e8f0ef; }
  .sp-signin:hover{ background:#22332f; }
}
