:root {
  color-scheme: light;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #f8fbff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
}

.public-auth-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: #0f172a;
  transform: translateY(-150%);
}

.public-auth-skip:focus {
  transform: translateY(0);
}

.public-auth-flash {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: min(92vw, 460px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-auth-flash li {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.public-auth-flash .error,
.public-auth-flash .danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.public-auth-flash .success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}

.dialog {
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

.dialog .btn-primary {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #1d4ed8;
  cursor: pointer;
}
