@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
  margin: 0;padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

:root{
  --bg-color: #fdfdfd;
  --dark-color: #333;
  --main-color: #3c8481; /* #754ef9 */
  --text-color: #fdfdfd;
  --shadow-color: rgba(0, 0, 0, .2);
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text-color);
}

#home-login {
  background: url(../img/background/bg4.jpg) no-repeat;
  background-size:cover;
  background-position: center;
}

.login-box {  
  position: relative;
  max-width: 1200px;
  background: transparent;
  border: 2px solid rgba(51, 51, 51, .5);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
  padding: 4rem 2rem;
}

.login-logo img {
  width: 400px;
}

h2 {
  font-size: 2em;
  color: var(--text-color);
  text-align: center;
}

p {
  text-align: center;
}

form {
  padding-top: 30px;
}

.login-separator {
  height: 2px;
  background-color: var(--text-color);
  width: 200px;
  margin: 1rem auto;
}

.input-box {
  position: relative;
  width: 310px;
  margin: 40px 0;
  border-bottom: 2px solid var(--bg-color);
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: var(--text-color);
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-box input:focus~label,
.input-box input:valid~label {
  top: -5px;
  font-size: 0.8em;
}

.input-box input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: var(--text-color);
  padding: 0 35px 0 5px;
}

.input-box .icon {
  position: absolute;
  right: 8px;
  color: var(--text-color);
  font-size: 1.2em;
  line-height: 57px;
}

button {
  width: 100%;
  height: 50px;
  background: transparent;
  border: 2px solid var(--text-color);
  outline: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1em;
  color: var(--text-color);
  font-weight: bold;
  margin-top: 50px;
  transition: all 0.5s ease;
}

button:hover {
  background: var(--text-color);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--dark-color);
}

@media (max-width: 450px) {
  .login-box {
    width: 95vw;
    height: 95vh;
    padding: 0;
  }

  h2 {
    font-size: 1.3rem;
  }

  .login-logo img{
    width: 300px;
  }

  .login-separator {
    width: 150px;
    margin: 0;
  }  
  
  .input-box{
    width: 270px;
    margin: 1rem 0;
  }

  button {
    width: 270px;
  }
}