.auth-page {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 48px 24px;
}
.auth-main {
  width: 100%;
  max-width: 368px;
  min-width: 0;
}
.auth-brand {
  width: max-content;
  padding: 0;
  margin-bottom: 48px;
}
.auth-brand strong {
  font-size: 29px;
}
.auth-main h1 {
  font-size: 26px;
  margin-bottom: 28px;
  line-height: 1.3;
}
.auth-main h2 {
  font-size: 15px;
}
.auth-wide {
  width: 100%;
  min-height: 46px;
  font-size: 13px;
}
.auth-wide .icon {
  width: 20px;
  height: 20px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.auth-field {
  display: grid;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.auth-field input {
  width: 100%;
  height: 46px;
  min-width: 0;
  padding: 10px 13px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 19px 0 24px;
}
.auth-remember input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.auth-message {
  min-height: 42px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.auth-message.error {
  color: var(--yellow);
}
.auth-origin {
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
[data-auth-page="login"] .auth-account,
[data-auth-page="account"] .auth-login {
  display: none;
}
.auth-account > .text-link {
  margin-bottom: 19px;
}
.auth-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.auth-keys {
  list-style: none;
  padding: 0;
}
.auth-keys li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.auth-keys small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.auth-empty {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 24px;
}
#passkeyForm {
  margin-top: 24px;
}
#passkeyForm .button {
  margin-top: 14px;
}
.auth-logout {
  margin-top: 30px;
}
@media (max-width: 420px) {
  .auth-page {
    padding: 32px 24px;
  }
  .auth-brand {
    margin-bottom: 34px;
  }
}
