.login-block 
{
  /*display: flex;
  align-items: center;*/
  position: absolute;
  display: block;
  right: 20px;
  top: 1rem;
  background: #2e3b4e;
  color: white;
  /*padding: 10px 20px;*/
  border-radius: 8px;
  /*cursor: pointer;*/
  width: fit-content;
  transition: background 0.3s;
}

.login-block:hover 
{
  /*background: #3f4d63;*/
}

.login-block img 
{
  width: 120px;
  height: 120px;
  /*margin-right: 10px;*/
}

/* Затемнённый фон */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 0.3s ease;
}

/* Форма входа */
.login-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 320px;
  max-width: 90%;
  animation: formFadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Заголовок */
.login-form h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Поля ввода */
.login-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Кнопки */
.login-form button {
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background-color: #2e3b4e;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #1c2533;
}

/* Анимации */
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Анимация исчезновения */
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes overlayFadeOut {
  to {
    opacity: 0;
  }
}

/* Классы для скрытия с анимацией */
.login-form.fade-out {
  animation: fadeOut 0.3s forwards;
}

.login-overlay.fade-out {
  animation: overlayFadeOut 0.3s forwards;
}