body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: Roboto, sans-serif;
  background-color: #252424;
  color: rgb(134, 128, 128);
  overflow: hidden;
}

.container {
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  flex-direction: column;
  display: flex;
  padding-top: 50px;
  padding: 20px;
  box-sizing: border-box;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 10px;
}

.header {
  border: #4b4b4b 2px solid;
  border-radius: 10px;
}

.login-box {
  font-family: Roboto, sans-serif;
  background-color: #1f1f1f;
  padding: 25px 20px;
  text-align: center;
  width: 350px;
  height: px;
  border-radius: 10px;
}
.logo {
  width: 150px;
  margin-bottom: 5px;
  border-radius: 20px;
}

#vkid_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  margin: 50px auto;
  background-color: #1e1e1e;
  padding: 14px;
  border: 2px solid #302f2f;
  border-radius: 8px;
}

#vkid_container iframe {
  transform: scale(1.4);
  transform-origin: center;
  border-radius: 8px !important;
}

.vk-button:hover {
  background-color: #575a5e;
}

.vk-button img {
  width: 20px;
  height: 20px;
}

.links {
  flex-direction: column;
  margin-top: 20px;
  font-size: 14px;
}

.links a {
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
  text-decoration: none;
}

.links a:hover {
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal.modal--open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

.modal.modal--open .modal-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  /* scale мы убрали из transform, чтобы не конфликтовать с translate */
  /* если вам нужен эффект плавного появления с масштабом, можно добавить сюда animation */
  animation: modalIn 0.3s ease forwards;
}

.modal-content {
  background-color: #1f1f1f;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
}

.modal-text {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  white-space: pre-line;
  font-size: 14px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Заголовок */
.modal-title {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Подвал с кнопкой */
.modal-footer {
  text-align: right;
}

/* Кнопка */
.close-btn {
  background-color: #343434;
  border: none;
  border-radius: 5px;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #505050;
}

/* Анимации */
@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.8);
  }
}

@keyframes modalIn {
  from {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
