/* unlock.css — full-width hazard-stripe banner under the header + shared
   "locked" password card used by the floating bubbles. */

.unlock-banner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 24px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  z-index: 25;
  /* orange/black diagonal hazard stripes */
  background-color: #1c1c1e;
  background-image: repeating-linear-gradient(
    45deg,
    #f59e0b 0,
    #f59e0b 14px,
    #1c1c1e 14px,
    #1c1c1e 28px
  );
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-height: 80px;
  transition: max-height 480ms cubic-bezier(0.2, 0.8, 0.2, 1),
              padding 480ms cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 360ms ease;
}
.unlock-banner.is-dismissed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* readable text plate sitting on top of the stripes */
.unlock-banner__text {
  background: rgba(28, 28, 30, 0.82);
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.unlock-banner__text .lock-ico { font-size: 14px; }

.unlock-banner__form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.unlock-banner__input {
  font: inherit;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95);
  color: #1c1c1e;
  min-width: 220px;
  outline: none;
}
.unlock-banner__input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45);
}
.unlock-banner__btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 8px;
  border: 0;
  background: #0b1220;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.unlock-banner__btn:hover { background: #000; }
.unlock-banner__btn:disabled { opacity: 0.6; cursor: progress; }

.unlock-banner__msg {
  background: rgba(28, 28, 30, 0.82);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12.5px;
}
.unlock-banner__msg.is-ok  { color: #6ee7b7; }
.unlock-banner__msg.is-err { color: #fca5a5; }

@keyframes ec-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.unlock-banner.shake { animation: ec-shake 380ms ease; }

@media (max-width: 760px) {
  .unlock-banner { padding: 10px 14px; font-size: 12.5px; }
  .unlock-banner__input { min-width: 150px; flex: 1 1 auto; }
}

/* ---- shared inline lock card for the floating bubbles (when not unlocked) ---- */
.lockcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.lockcard h4 {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lockcard p { margin: 0; font-size: 12.5px; color: var(--ink-mute); line-height: 1.4; }
.lockcard input {
  font: inherit;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--card-2);
  color: var(--ink);
  outline: none;
}
.lockcard input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}
.lockcard button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
}
.lockcard button:hover { background: var(--brand-strong); }
.lockcard .lockcard__msg { font-size: 12px; min-height: 16px; }
.lockcard .lockcard__msg.is-err { color: var(--bad); }
.lockcard .lockcard__msg.is-ok  { color: var(--good); }
