@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "poppins";
  color: white;
}

body {
  background: url(jpg/hatterff.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
}

.login-section {
  border: 2px solid goldenrod;
  height: 520px;
  width: 400px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-100%, -50%);
  backdrop-filter: blur(30px);
  border-radius: 10px;
  transition: 0.3s;
  overflow: hidden;
}

.login-section:hover {
  box-shadow: 0 0 60px goldenrod;
}

.formbox {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.formbox h2 {
  text-align: center;
  font-size: 35px;
  color: darkgoldenrod;
 font-weight: 800;
 text-shadow: 2px 13px 22px gray;
}

.formbox .input-box {
  width: 100%;
  height: 50%;
  border-bottom: 2px solid white;
  margin: 30px 0;
  position: relative;
}

.input-box input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 18px;
  /* padding-right: 28px; */
  color: rgb(255, 255, 255);
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 500;
  color: white;
  transition: 0.3s ease;
}

.input-box .icon {
  position: absolute;
  top: 13px;
  right: 0;
  font-size: 19px;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
  color: goldenrod;
  font-weight: 600;
}

.remmember-password {
  font-size: 16px;
  font-weight: 500;
  margin: -15px 0 15px;
  display: flex;
  justify-content: space-between;
}

.remmember-password label input {
  accent-color: goldenrod;
  margin-right: 3px;
}

.remmember-password a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.remmember-password a:hover {
  color: goldenrod;
  font-weight: 600;
 
  text-decoration: none;
}

.btn {
  /*background-color: white; */
  width: 100%;
  height: 45px;
  /*background-color: darkgoldenrod;*/
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  color: darkgoldenrod;
  background-color: rgb(255, 255, 255);
  transition: 1s ease;
}

.btn:hover {
  color: white;
  background-color: darkgoldenrod;
  transition: 0.7s ease;
}

.create-account {
  font-size: 16px;
  text-align: center;
  margin: 5px 25px;

}

.create-account p a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.create-account p a:hover {
  color: goldenrod;
  font-weight: 600;
}

.register {
  transition: transform 2s ease;
}

.frmloginonair {
  transform: translateY(-1000px);
  transition: transform 2s ease;
}

.login {
  transition: transform 2s ease;
}

.cegnev {
  text-align: center;
  animation: meret 3s;
  transition-timing-function: linear;
  /* animation-direction: alternate;   - oda vissza csinálja */
}

.cegnev h3 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 6px 6px 6px black;
}

.hibauzenet {
  color: white;
  background-color: darkred;
width: 100%;
text-align: center;
border-radius: 3px;
margin-top: 5px;
padding: 3px 0;
display: flow-root;
}

.lablec {
  display: flex;
  justify-content: center;
  transition: 0.7s ease;
}


.vissza-link {
  text-decoration: none;
  position: relative;
  color: goldenrod;
  /* Ha nem kell a fehér háttér vedd ki */
  background-color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  margin: 5px auto;
  width: 200px;

}

.vissza-link:hover {
  text-decoration: none;
  color: white;
  background-color: darkgoldenrod;
}

/* --------------- Animáció ----------- */
@keyframes meret {
  0% {
    transform: scale(0.01);
  }
  60% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* --------------- max 600px ----------- */
@media screen and (max-width: 600px) {
  .login-section {
    width: 85%;
    transform: translate(-50%, -50%);
  }
  .formbox h2 {
    font-size: 25px;
  }

  .action {
    width: 95%;
  }
}
