/* 
----------------------------
Модальное окно ошибка
----------------------------
*/

.error-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.error-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.error-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: #fff;
  padding: 3rem 10rem;
  max-width: 40rem;
  text-align: center;
  position: relative;
  box-shadow: 0 9px 20px 0 rgba(0, 0, 0, 0.1), 0 36px 36px 0 rgba(0, 0, 0, 0.09),
    0 82px 49px 0 rgba(0, 0, 0, 0.05), 0 146px 58px 0 rgba(0, 0, 0, 0.01),
    0 228px 64px 0 rgba(0, 0, 0, 0);
  animation: ss 0.4s ease-out;
}

@keyframes ss {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.error-modal-cross {
  max-width: 5rem;
}

.error-modal-text {
  color: #ec7777;
}

.error-modal-ok {
  background-color: transparent;
  border: 1px solid #ec7777;
  color: #ec7777;
}

/* 
----------------------------
Модальное окно успех
----------------------------
*/

.success-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.success-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.success-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: #fff;
  padding: 3rem 10rem;
  max-width: 40rem;
  text-align: center;
  position: relative;
  box-shadow: 0 9px 20px 0 rgba(0, 0, 0, 0.1), 0 36px 36px 0 rgba(0, 0, 0, 0.09),
    0 82px 49px 0 rgba(0, 0, 0, 0.05), 0 146px 58px 0 rgba(0, 0, 0, 0.01),
    0 228px 64px 0 rgba(0, 0, 0, 0);
  animation: ss 0.4s ease-out;
}

@keyframes ss {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-modal-cross {
  max-width: 5rem;
}

.success-modal-text {
  color: #7dcb1e;
}

.success-modal-ok {
  background-color: transparent;
  border: 1px solid #7dcb1e;
  color: #7dcb1e;
}

/* 
---------------------------------
ошибки при вводе
--------------------------------
*/

.input-error {
  border-color: #ec7777;
}
.input-error::placeholder {
  color: #ec7777;
}
