.signin-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid #ffffff36;
  border-radius: 22px;
  background: linear-gradient(145deg, #202020d9, #080808ed);
  color: #f1f6ff;
  box-shadow: 0 28px 96px #0009, inset 0 1px #ffffff1a;
  backdrop-filter: blur(24px);
  font: 15px/1.5 system-ui, sans-serif;
}
.signin-dialog::backdrop { background: #0008; backdrop-filter: blur(8px); }
.signin-dialog [hidden] { display: none; }
.signin-close { position: absolute; right: 13px; top: 13px; }
.signin-close button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font: 27px/1 system-ui, sans-serif;
  width: 36px;
  height: 36px;
}
.signin-close button:hover { background: #ffffff1a; }
.signin-brand { display: block; width: min(188px, 70%); height: auto; margin: 8px auto 20px; }
.signin-dialog h2 { text-align: center; margin: 0 0 24px; font-size: 28px; }
.signin-form, .signin-form label { display: grid; gap: 8px; }
.signin-form { gap: 15px; }
.signin-form input, .signin-form button {
  width: 100%;
  border: 1px solid #ffffff4d;
  border-radius: 9px;
  padding: 11px 13px;
  background: #0006;
  color: inherit;
  font: inherit;
  color-scheme: dark;
}
.signin-form button { background: #1268cc; border-color: transparent; font-weight: 650; cursor: pointer; }
.signin-form button:hover { background: #105eb8; }
.signin-create { text-align: center; margin: 19px 0 0; color: #cccccc; }
.signin-create a { color: #a4ceff; }
.signin-error { color: #ffd2d2; margin-bottom: 16px; }
.signin-dialog :focus-visible { outline: 2px solid #a4ceff; outline-offset: 3px; }
