/* Фон и выравнивание */
body {
  background-color: #2f2f2f;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: sans-serif;
}

#vkid {
  width: 320px;
  min-height: 44px;
}

/* Контейнер */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.typing-text {
  color: #fff;
  font-size: 16px;
  max-width: 320px;
  min-height: 48px;
  margin-bottom: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
  display: flex;
  justify-content: center;
}

.cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 1s steps(1) infinite;
  color: #fff;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.error-blink {
  animation: blink-error 0.6s ease-in-out 3;
  border-color: #ff4444 !important;
}

@keyframes blink-error {
  0% {
    background-color: #3a3a3a;
  }

  50% {
    background-color: #5a2a2a;
  }

  100% {
    background-color: #3a3a3a;
  }
}

@keyframes blink-error {
  0% {
    background-color: #3a3a3a;
  }

  50% {
    background-color: #5a2a2a;
  }

  100% {
    background-color: #3a3a3a;
  }
}

/* Поле ввода */
input[type="text"] {
  background-color: #3a3a3a;
  color: #fff;
  border: 1px solid #555;
  padding: 10px;
  border-radius: 6px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  font-size: 16px;
  margin-bottom: 12px;
}

input[type="text"]:focus {
  outline: none;
  border-color: #777;
  background-color: #444;
}

/* Кнопка */
button {
  background-color: #5a5a5a;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

button:hover {
  background-color: #777;
}

.description {
  margin-top: 10px;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 20px;
  }

  input[type="text"],
  button {
    max-width: 100%;
    font-size: 18px;
  }

  .container {
    width: 100%;
  }
}