:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink, #303841);
  background: var(--paper, #ffffff);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 36px 25px;
}
.lock-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.heart {
  display: inline-block;
  font:
    italic 65px/0.9 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -5px;
  margin-bottom: 42px;
  color: var(--accent, #7d233b);
}
h1 {
  font:
    400 66px/0.97 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -1.6px;
  margin: 0 0 17px;
}
.intro {
  font-size: 12px;
  color: #68737d;
  margin-bottom: 0;
}
form {
  margin-top: 42px;
  text-align: left;
}
label {
  display: block;
  font-size: 11px;
  margin-bottom: 10px;
}
.password-field {
  display: flex;
  border: 1px solid #cfdae2;
  border-radius: 12px;
  background: var(--paper, #ffffff);
  overflow: hidden;
}
.password-field:focus-within {
  outline: 2px solid #7d233b;
  outline-offset: 3px;
}
input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  padding: 16px;
  font-size: 16px;
  color: var(--ink, #303841);
  outline: none;
}
button {
  cursor: pointer;
  font: inherit;
}
#show {
  border: 0;
  background: none;
  padding: 0 15px;
  font-size: 10px;
  color: #68737d;
}
.submit {
  width: 100%;
  border: 0;
  border-radius: 30px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  background: var(--accent, #7d233b);
  color: #ffffff;
  font-size: 12px;
}
.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible {
  outline: 2px solid #7d233b;
  outline-offset: 4px;
}
#error {
  font-size: 12px;
  line-height: 1.6;
  color: var(--accent, #7d233b);
  min-height: 18px;
  margin: 8px 0;
}
.signature {
  display: block;
  margin-top: 36px;
  font:
    28px "Instrument Serif",
    Georgia,
    serif;
  color: var(--blue, #426b8a);
}
@media (max-width: 360px) {
  h1 {
    font-size: 58px;
  }
}
/* Keep the login usable with the mobile keyboard and safe areas. */
:root {
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}
button {
  min-height: 48px;
  touch-action: manipulation;
}
#show {
  min-width: 76px;
  font-size: 12px;
}
.submit {
  font-size: 15px;
  min-height: 52px;
  align-items: center;
}
label {
  font-size: 14px;
}
.intro {
  font-size: 14px;
}
@media (max-height: 550px) {
  body {
    display: block;
  }
  .lock-card {
    margin: auto;
  }
  .heart {
    margin-bottom: 18px;
    font-size: 42px;
  }
  h1 {
    font-size: 48px;
  }
  form {
    margin-top: 24px;
  }
  .signature {
    margin-top: 18px;
  }
}

h1 {
  color: var(--blue, #426b8a);
}
