.xtlab-auth-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 10px;
  background: rgb(0 0 0 / 78%);
  color: #f5f5f5;
  font: 1rem/1.45 system-ui, sans-serif;
  box-shadow: 0 22px 72px rgb(0 0 0 / 22%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.xtlab-auth-dialog::backdrop {
  background: rgb(0 0 0 / 32%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.xtlab-auth-dialog__panel { position: relative; padding: clamp(1.1rem, 4vw, 1.8rem); }
.xtlab-auth-dialog .xtlab-auth-dialog__close {
  position: absolute;
  inset: .8rem .8rem auto auto;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d4d4d4;
  font: 1.6rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.xtlab-auth-dialog__close:hover { background: rgb(255 255 255 / 12%); }
.xtlab-auth-dialog__modes { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 2.75rem 1.25rem 0; }
.xtlab-auth-dialog__modes button {
  min-height: 2.5rem;
  padding: .35rem .6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d4d4d4;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.xtlab-auth-dialog__modes button[aria-pressed="true"] { background: rgb(255 255 255 / 14%); color: #f5f5f5; font-weight: 650; }
.xtlab-auth-dialog h2 { margin: 0; color: inherit; font: 700 clamp(1.25rem, 5vw, 1.625rem)/1.2 system-ui, sans-serif; }
.xtlab-auth-dialog p { margin: .45rem 0 1.35rem; color: #d4d4d4; font: inherit; }
.xtlab-auth-dialog__actions { display: grid; gap: .65rem; }
.xtlab-auth-dialog__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .55rem .8rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  background: rgb(0 0 0 / 78%);
  color: #f5f5f5;
}
.xtlab-auth-dialog__actions a:hover { background: rgb(255 255 255 / 12%); }
.xtlab-auth-dialog__actions a[data-method="xtlab"] { background: #000; border-color: rgb(255 255 255 / 38%); color: #fff; }
.xtlab-auth-dialog__actions a[data-method="xtlab"]:hover { background: #202020; }
.xtlab-auth-dialog :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
