@font-face {
  font-family: Oswald;
  src: url("/fonts/oswald-medium-core-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "Avenir Next", system-ui, sans-serif;
  color: #181b1d;
  background: #f3f7f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(18px, 5vw, 48px);
}
.sign-in-panel {
  width: min(100%, 438px);
  background: #fff;
  border: 1px solid #dce7e8;
  border-radius: 18px;
  box-shadow: 0 18px 50px #103c4310;
  overflow: hidden;
}
.sign-in-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid #e6eeee;
}
.sign-in-brand img { display: block; width: 74px; height: auto; margin-left: -8px; }
.sign-in-brand span { font-size: 13px; color: #526165; }
.sign-in-content { padding: 30px 28px 28px; }
h1 {
  font: 500 clamp(32px, 5vw, 38px)/1.15 Oswald, "Arial Narrow", sans-serif;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
.intro { margin: 0; color: #526165; font-size: 15px; line-height: 1.55; max-width: 35ch; }
.sign-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px 12px 18px;
  margin-top: 24px;
  background: #087b84;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  min-height: 50px;
}
.sign-in:hover { background: #066470; }
.sign-in:focus-visible { outline: 2px solid #087b84; outline-offset: 4px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sign-in svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #065d64; }
.restricted {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 15px 28px;
  border-top: 1px solid #e6eeee;
  color: #526165;
  font-size: 13px;
  line-height: 1.45;
}
.restricted svg { color: #077a83; width: 16px; height: 16px; }
.message { margin: 16px 0 0; padding: 8px 11px; border-radius: 6px; font-size: 14px; line-height: 1.45; color: #445353; background: #eff5f5; }
.message.error { color: #85382e; background: #fdf0ed; }
.message.success { color: #06636a; background: #edf6f6; }
@media(max-width:420px) { .sign-in-brand,.sign-in-content,.restricted { padding-inline: 20px; } }
.theme-switch{display:flex;align-items:center;gap:6px;background:transparent;border:1px solid #dce7e8;border-radius:100px;color:#526165;font:inherit;font-size:13px;min-height:36px;padding:7px 10px;cursor:pointer}
.theme-switch svg{width:16px;height:16px}
.theme-switch:hover{background:#edf6f6}
.theme-switch:focus-visible{outline:2px solid #087b84;outline-offset:3px}
:root[data-theme="dark"]{color-scheme:dark;background:#10191b;color:#e9f3f4}
[data-theme="dark"] .sign-in-panel{background:#162427;border-color:#2c4448;box-shadow:none}
[data-theme="dark"] .sign-in-brand img{background:white;border-radius:5px}
[data-theme="dark"] .sign-in-brand,[data-theme="dark"] .restricted,[data-theme="dark"] .theme-switch{border-color:#2c4448}
[data-theme="dark"] .intro,[data-theme="dark"] .restricted,[data-theme="dark"] .theme-switch{color:#adc4c8}
[data-theme="dark"] .theme-switch:hover{background:#1d383b}
[data-theme="dark"] .restricted svg{color:#77d5d9}
[data-theme="dark"] .message{background:#203d3c;color:#b8d7d2}
[data-theme="dark"] .message.error{background:#442723;color:#ffbaaa}
