body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.password-form {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  margin: 0;
  padding: 72px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;

  background: rgba(255, 254, 247, 0.92);
  border: 1px solid rgba(120, 116, 70, 0.14);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.06);
  backdrop-filter: blur(4px);
}

.password-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(120, 95, 70, 0.18);
  border-radius: 12px;
  background: #fffef9;
  color: #4a3a2c;

  font: 18px/1.2 "Courier New", Consolas, monospace;;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.password-input::placeholder {
  color: #a08f7d;
}

.password-input:focus {
  border-color: rgba(141, 112, 84, 0.45);
  box-shadow: 0 0 0 4px rgba(141, 112, 84, 0.08);
  background: #fffdfa;
}

.password-button {
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: #66548d;
  color: #fffaf4;
  cursor: pointer;

  font: 18px/1.2 "Courier New", Consolas, monospace;;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(90, 65, 40, 0.12);
}

.password-button:hover {
  background: #50487c;
}

.password-button:active {
  transform: translateY(1px);
}

.password-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 84, 141, 0.12);
}

.password-wrap {
  position: relative;
  display: flex;
  margin-top: 200px;
  justify-content: center;
  align-items: center;
}

.password-form {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  margin: 0;
  padding: 24px 24px 24px; /* сверху побольше места под картинку */
}

.password-figure {
  position: absolute;
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  width: 140px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

.type-line {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;

  color: #6a5263;
  font: 15px/1.5 "Courier New", Consolas, monospace;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;

  letter-spacing: 0;
  min-height: 3.2em;
}


.type-italic {
  font-style: italic;
  color: #3f313b;
  font-family: 'Great Vibes', cursive; 
  font-size: 24px;
}


#typeLineText {
  white-space: pre-wrap;
}

.type-cursor::before {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  font-size: 1.35em;
  color: rgba(106, 82, 99, 0.75);
  animation: blink 1.2s steps(1, end) infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}