/* HomeHub PIN gate: full-screen, touch-first, matches the dark console. */

.hh-login {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12000;
  display: none;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 4vh 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #080d0e;
  background-image:
    radial-gradient(80% 70% at 50% 0%, rgba(52, 68, 60, 0.45), rgba(8, 13, 14, 0) 62%),
    radial-gradient(60% 50% at 100% 100%, rgba(122, 86, 42, 0.16), rgba(8, 13, 14, 0) 60%);
  color: #f3ecdd;
}

.hh-login.is-visible {
  display: -webkit-flex;
  display: flex;
}

.hh-body.auth-pending .hh-app,
.hh-body.auth-pending .hh-toast {
  visibility: hidden;
}

.hh-login__panel {
  width: 100%;
  max-width: 420px;
  padding: 28px 30px 26px;
  border: 1px solid rgba(240, 232, 216, 0.15);
  border-radius: 24px;
  background: linear-gradient(160deg, #162526, #0d1718);
  box-shadow: 0 30px 70px -40px #000;
  text-align: center;
}

.hh-login__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hh-login__brand .hh-brand__mark {
  width: 30px;
  height: 30px;
  margin: 0 10px 0 0;
}

.hh-login__brand span:last-child {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: var(--hh-fs-24, 24px);
  color: #f3ecdd;
}

.hh-login__eyebrow {
  margin: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: var(--hh-fs-9, 9px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d8b678;
}

.hh-login__title {
  margin: 8px 0 4px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: var(--hh-fs-30, 30px);
  font-weight: 400;
  color: #f3ecdd;
}

.hh-login__hint {
  margin: 0 0 18px;
  font-size: var(--hh-fs-13, 13px);
  color: #92a29e;
}

.hh-login__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 16px;
}

.hh-login__dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border: 1px solid rgba(216, 182, 120, 0.55);
  border-radius: 50%;
  background: transparent;
}

.hh-login__dot.is-filled {
  background: #d8b678;
  border-color: #d8b678;
}

.hh-login__error {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: var(--hh-fs-12, 12px);
  color: #f0a184;
}

.hh-login__keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.hh-login__key {
  min-height: 58px;
  border: 1px solid rgba(240, 232, 216, 0.16);
  border-radius: 14px;
  background: #0b1718;
  color: #f3ecdd;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: var(--hh-fs-22, 22px);
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-login__key:active {
  background: rgba(216, 182, 120, 0.19);
  border-color: #d8b678;
}

.hh-login__key--soft {
  font-size: var(--hh-fs-12, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8b678;
}

.hh-login__unlock {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: #d8b678;
  color: #14201d;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: var(--hh-fs-12, 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
}

.hh-login__unlock:disabled {
  opacity: 0.45;
}

.hh-login__unlock.is-busy {
  color: transparent;
  background: #a98d58;
}

.hh-login__status {
  min-height: 16px;
  margin: 9px 0 0;
  font-size: var(--hh-fs-11, 11px);
  color: #92a29e;
}

@media (max-width: 480px) {
  .hh-login__panel {
    padding: 22px 20px;
  }

  .hh-login__title {
    font-size: var(--hh-fs-26, 26px);
  }
}
