.page-content {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 45px 45px 0 45px;
}

.register__heading h1 {
  font-size: 1.3rem;
  text-align: center;
}

.register__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 45px 0;
  display: block;
}

.register__field {
  padding: 10px 0;
  position: relative;
}

.register__field label {
  display: block;
  font-size: 0.9rem;
  color: black;
  text-align: right;
  padding: 8px 0;
}

.register__field input {
  width: 100%;
  border: 1px solid #b1b1b1;
  border-radius: 6px;
  padding: 14px 18px;
  transition: border-color 350ms ease-in;
  caret-color: var(--primary-color);
}

.register__field > .secret-field__icon {
  position: absolute;
  top: 63px;
  left: 15px;
  color: #000;
  cursor: pointer;
  opacity: 0;
}

.register__field > .secret-field__icon:active > i::before {
  content: "\f06e";
}

.register__field:has(> #password:hover) > .secret-field__icon,
.register__field:has(> #password:focus) > .secret-field__icon,
.register__field > .secret-field__icon:hover {
  opacity: 1;
}

.register__field > .secret-password-repeat-field__icon {
  position: absolute;
  top: 63px;
  left: 15px;
  color: #000;
  cursor: pointer;
  opacity: 0;
}

.register__field > .secret-password-repeat-field__icon:active > i::before {
  content: "\f06e";
}

.register__field:has(> #passwordRepeat:hover) > .secret-password-repeat-field__icon,
.register__field:has(> #passwordRepeat:focus) > .secret-password-repeat-field__icon,
.register__field > .secret-password-repeat-field__icon:hover {
  opacity: 1;
}

.register__field input:focus,
.register__field input:hover {
  border-color: var(--primary-color);
}

.register__field button {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.register__field button::after {
  content: "ثبت نام";
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  color: #fff;
  z-index: 9999;
}

.register__field button::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0;
  right: 50%;
  transform: translateX(50%);
  transition: width 300ms ease-in-out;
  background: #fff;
  z-index: 1;
}

.register__field button:hover::before {
  width: 100%;
}

.register__field button:hover::after {
  color: var(--primary-color);
}

.register__field:has(> button) {
  padding-top: 35px;
}

.register-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.register-messages {
    background: rgb(255, 204, 204);
    border-radius: 8px;
    padding: 18px;
    color: #ff0000;
    margin-bottom: 15px;
}
