html[data-app-login] body > :not(.login-screen) {
  display: none !important;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px;
  background: var(--canvas, #f5f3ee);
}

.login-card {
  box-sizing: border-box;
  width: min(100%, 400px);
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line, #e7e3dc);
  border-radius: 17px;
  background: var(--paper, #fff);
  box-shadow: 0 14px 35px #30241a12;
}

.login-card img {
  display: block;
  margin-bottom: 15px;
}

.login-card h1 {
  font-size: clamp(26px, 5vw, 35px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.06em;
}

.login-checking {
  margin-top: 19px;
  color: var(--muted, #686963);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-setup h2 {
  font-size: 18px;
  letter-spacing: -.035em;
}

.login-instruction,
.login-notice {
  margin-top: 4px;
  color: var(--muted, #686963);
  font-size: 13px;
}

.login-field {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  font-size: 13px;
  font-weight: 700;
}

.login-field small {
  margin-left: 4px;
  color: var(--muted, #686963);
  font-size: 12px;
  font-weight: 500;
}

.login-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background: white;
  font-size: 16px;
  font-weight: 500;
}

.login-password-field {
  position: relative;
}

.login-password-field input {
  padding-right: 72px;
}

.login-reveal {
  position: absolute;
  inset: 3px 3px 3px auto;
  min-width: 52px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted, #686963);
  font-size: 12px;
  font-weight: 700;
}

.login-reveal:hover {
  background: var(--canvas, #f5f3ee);
}

.login-error {
  padding: 8px 10px;
  border-radius: 5px;
  background: var(--red-soft, #f9ece7);
  color: var(--red-deep, #a83126);
  font-size: 13px;
}

.login-submit {
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--red-deep, #a83126);
  border-radius: 8px;
  background: var(--red-deep, #a83126);
  color: white;
  font-size: 14px;
  font-weight: 750;
}

.login-submit:hover {
  background: #90271d;
}

.login-submit:disabled {
  opacity: .68;
  cursor: wait;
}

.login-setup-cancel {
  justify-self: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #686963);
  font-size: 13px;
  font-weight: 700;
}

.login-setup-cancel:hover {
  background: var(--canvas, #f5f3ee);
}
