html.auth-pending body {
  visibility: hidden;
}

html.auth-active body,
html.auth-ready body {
  visibility: visible;
}

body.auth-locked {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(244, 244, 249, 0.92);
  backdrop-filter: blur(10px);
}

.auth-card {
  width: min(420px, 100%);
  padding: 1.4rem;
  border: 1px solid rgba(29, 43, 108, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(29, 43, 108, 0.12);
}

.auth-brand {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 1rem;
}

.auth-title {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #223057;
}

.auth-copy {
  margin: 0 0 1rem;
  color: #58627b;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #556888;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(29, 43, 108, 0.16);
  border-radius: 12px;
  outline: none;
  font: inherit;
  color: #223057;
  background: #ffffff;
}

.auth-form input:focus {
  border-color: rgba(29, 43, 108, 0.38);
  box-shadow: 0 0 0 3px rgba(29, 43, 108, 0.08);
}

.auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #1d2b6c;
  color: #ffffff;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.auth-error {
  min-height: 1.2rem;
  margin: 0;
  color: #b03349;
  font-size: 0.9rem;
}
