:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2939;
  background: #f4f6f8;
  font-synthesis: none;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px max(24px, calc((100% - 1080px) / 2));
  background: #fff;
  border-bottom: 1px solid #dde3ea;
  font-size: 14px;
}
.site-name { color: #174a7e; text-decoration: none; font-size: 18px; font-weight: 700; }
.site-header span { color: #526171; }
.page { width: 100%; flex: 1; display: grid; place-items: center; padding: 48px 20px; }
.login-card { width: 100%; max-width: 480px; padding: 36px; background: #fff; border: 1px solid #dde3ea; border-radius: 12px; }
.eyebrow { margin: 0 0 12px; color: #174a7e; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; }
.intro { margin: 0 0 28px; color: #526171; }
.login-options { display: grid; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button-google { background: #fff; color: #263749; border-color: #bcc7d4; }
.button-google:hover { background: #f3f6fa; }
.button-github { color: #fff; background: #24364a; }
.button-github:hover { background: #17283a; }
a:focus-visible, button:focus-visible { outline: 3px solid #2973c8; outline-offset: 4px; }
.session-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e2e7ed; }
h2 { margin: 0 0 8px; font-size: 15px; }
#status { margin: 0; color: #526171; font-size: 14px; overflow-wrap: anywhere; }
#status[data-state="active"] { color: #17633b; }
#status[data-state="error"] { color: #a12622; }
.button-logout { margin-top: 16px; min-height: 42px; background: #edf2f7; color: #263749; font-size: 14px; }
.button-logout:hover { background: #dfe7ef; }
.notice { color: #7b4512; font-size: 14px; }
.site-footer { padding: 0 20px 26px; color: #526171; text-align: center; font-size: 12px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 520px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 4px; padding: 16px 20px; }
  .page { padding: 28px 16px; }
  .login-card { padding: 28px 24px; }
  h1 { font-size: 27px; }
}
