:root {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #242428;
  background: #f2f2f4;
}

* { box-sizing: border-box; }
body { margin: 0; }

.topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: .65rem 1.2rem;
  background: #eeeef0;
  border-bottom: 1px solid #c9c9ce;
  font-weight: 600;
}

main { padding: clamp(32px, 11vh, 120px) clamp(16px, 4vw, 42px) 32px; }

.sign-in {
  width: min(100%, 480px);
  margin-inline: auto;
  padding: clamp(20px, 5vw, 40px);
  background: #fff;
  border: 1px solid #c9c9ce;
  border-radius: 10px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.intro { margin: .75rem 0 1.5rem; color: #606068; }
.sign-in-actions { border-top: 1px solid #e2e2e6; padding-top: 1.5rem; }

#staff-sign-in {
  width: min(100%, 320px);
  min-height: 44px;
  max-height: 60px;
}

#staff-sign-in:empty { display: none; }
/* Keep the cross-origin frame rendered as it initializes. The pending slot is inert. */
#staff-sign-in:not([data-button-ready]) { opacity: 0; pointer-events: none; }

/* Google inserts an unstyled SVG while the button iframe initializes. */
#staff-sign-in svg { width: 20px; height: 20px; vertical-align: middle; }
#staff-sign-in iframe { max-height: 60px; }

#sign-in-status:not([data-state="ready"]) {
  margin-top: 1rem;
  padding: .75rem .9rem;
  border-radius: 6px;
  background: #eef2f8;
}

#sign-in-status[data-state="ready"] { margin: 0; }
#sign-in-status[data-state="denied"],
#sign-in-status[data-state="error"] { background: #fbf4e5; color: #654719; }
#status-title { margin: 0; font-weight: 600; }
#status-detail { margin: .28rem 0 0; }
#status-title:empty, #status-detail:empty { display: none; }

button {
  min-height: 40px;
  padding: .45rem .8rem;
  font: inherit;
  color: #242428;
  background: #fff;
  border: 1px solid #bebec5;
  border-radius: 6px;
  cursor: pointer;
}

#retry-sign-in { margin-top: 1rem; }
button:hover { background: #f1f2f6; }
:focus-visible { outline: 2px solid #2967ce; outline-offset: 2px; }
