* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
  background: darkslategray;
  position: relative;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub-container {
  height: max-content;
  width: max-content;
  display: flex;
  flex-direction: column;
  background-color: gainsboro;
  border-radius: 1.5%;
  box-shadow: lightgray;
  padding: 10px 10px 20px 10px;
}

.item {
  margin: 0 20px 0 20px;
  padding: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.item-head {
  border-bottom: 2px solid black;
}

.item input {
  border: 2px solid #f0f0f0;
  border-radius: 4px;
  display: block;
  font-size: 14px;
  width: 100%;
  height: 30px;
  outline: none;
}

.item-btn input {
  padding: 5px;
  border: none;
  cursor: pointer;
}

.item .error {
  color: #ff3860;
  font-size: 12px;
  height: 13px;
}

.item.error input {
  border-color: #ff3860;
}

.item.success input {
  border-color: rgb(52, 131, 131);
}

.loader {
  display: none;
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #3b3b3b;
  width: 50px;
  height: 50px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
