/* Poppins Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ==== Color Variables ==== */
:root {
  --primary-color: #c6c3c3;
  --secondary-color: #fff;
  --black-color: #000;
}

body {
  background-image: url("../img/forest.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Reusable CSS */
a {
  text-decoration: none;
  color: var(--secondary-color);
}

a:hover {
  text-decoration: underline;
}

/* ===== WRAPPER ==== */
.wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgb(0, 0, 0, 0.2);
  flex-direction: column;
}

.login__box {
  position: relative;
  width: 400px;
  backdrop-filter: blur(25px);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 120px 32px 64px 40px;
  color: var(--secondary-color);
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.3);
}

.login__header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  width: 140px;
  height: 70px;
  border-radius: 0 0 20px 20px;
}

.login__header span {
  font-size: 30px;
  color: var(--black-color);
}

.login__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 30px;
  border-top-right-radius: 50%;
  background: transparent;
  box-shadow: 15px 0 0 0 var(--primary-color);
}

.login__header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 30px;
  height: 30px;
  border-top-left-radius: 50%;
  background: transparent;
  box-shadow: -15px 0 0 0 var(--primary-color);
}

.input__box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.input__field {
  width: 100%;
  height: 55px;
  font-size: 16px;
  background: transparent;
  color: var(--secondary-color);
  padding-inline: 20px 50px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  outline: none;
}

#user {
  margin-bottom: 10px;
}

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: 0.2s;
}

.input__field:focus ~ .label,
.input__field:valid ~ .label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  background-color: var(--primary-color);
  border-radius: 30px;
  color: var(--black-color);
  padding: 0 10px;
}

.show-hide-password {
  position: absolute;
  top: 18px;
  right: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--primary-color);
}

.input__field:focus ~ .show-hide-password {
  color: var(--secondary-color);
}

.icon {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 20px;
}

.remember__forgot {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.input__submit {
  width: 100%;
  height: 50px;
  background: #ececec;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.input__submit:hover {
  background: var(--secondary-color);
}

.register {
  text-align: center;
}

.register a {
  font-weight: 500;
}

@media only screen and (max-width: 546px) {
  .wrapper {
    padding: 20px;
  }
  .login__box {
    padding: 105px 21px 56px 21px;
  }
}
