html,
body {
  overflow: hidden;
  background: var(--page-bg);
}

.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  color: var(--text);
  background:
    radial-gradient(80% 55% at 15% 8%, var(--glow-one), transparent 70%),
    radial-gradient(75% 55% at 92% 92%, var(--glow-two), transparent 72%),
    linear-gradient(145deg, #fbf5e9, #efe2d1);
  position: relative;
}

.login-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.7;
}

.login-glow-one {
  width: 210px;
  height: 210px;
  top: -80px;
  right: -60px;
  background: rgba(235, 187, 93, 0.34);
}

.login-glow-two {
  width: 180px;
  height: 180px;
  bottom: -75px;
  left: -50px;
  background: rgba(217, 151, 105, 0.22);
}

.login-card {
  width: min(366px, 100%);
  padding: 38px 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 24px 70px rgba(105, 76, 39, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  text-align: center;
  position: relative;
}

.haven-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 22px;
  color: var(--accent);
  background: linear-gradient(145deg, #fffdf8, #f7ead2);
  border: 1px solid rgba(199, 146, 47, 0.2);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.haven-mark svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.haven-mark .spark {
  fill: currentColor;
  stroke: none;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.login-card h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.login-subtitle {
  margin: 10px 0 26px;
  color: var(--sub);
  font-size: 14px;
}

.preview-note {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sub);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 8px rgba(36, 169, 121, 0.48);
}

.enter-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 11px 25px var(--accent-glow);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.enter-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enter-button:disabled {
  opacity: 0.62;
}

.login-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #b34e47;
  font-size: 12px;
}

.login-footnote {
  margin: 8px auto 0;
  max-width: 260px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-height: 620px) {
  .login-card {
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .haven-mark {
    margin-bottom: 12px;
  }
}

.setup-hint {
  margin: -10px 0 18px;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.55;
}

.password-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--sub);
  font-size: 12px;
  text-align: left;
}

.password-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.password-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
