*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: sans-serif;
    letter-spacing: 0.6px;
} 

.container {
    width: 23%;  
    height: 40%; 
    position: relative;
    background: transparent;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .30);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, .2);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

h1 {
    font-size: 46px;
    letter-spacing: -1.7px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: auto;
}

.input-field input {
    width: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    outline: none;
    font-size: 16px;
    color: #fff;
    padding: 20px 40px 20px 20px;  
    margin-top: 12px;
    letter-spacing: .8px;
    padding-right: 50px;
}

.input-field input::placeholder {
    color: #fff;
}


.input-username,
.input-password {
    position: relative;
}

.input-username ion-icon,
.input-password ion-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    color: white;
    pointer-events: none; 
}

.username {
    height: 40px; 
    width: 100%; 
    background-color: purple;
    color: white;
}

.password {
    height: 40px;
    width: 100%; 
    background-color: purple;
    color: white;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 15px 5px 10px;
    letter-spacing: 1px;
}

.remember-forgot label input {
    accent-color: #fff;
    margin-right: 3px;
}

.container button {
    height: 45px;
    width: 100%;
    background: none;
    outline: none;
    border-radius: 40px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    background-color: #bdb1d3;
    font-weight: 600;
}

.container .create {
    font-size: 14px;
    font-family: sans-serif;
    font-weight: 300;
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
} 

.create span {
    color: #fff;
    text-decoration: none; 
    font-size: 15.5px;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: black;
    border: 2px solid rgba(255, 255, 255, .2);
} 

button:hover {
    background-color: rgb(109, 74, 204);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .2);
}

/* ----------------- MEDIA QUERIES -------------------- */

@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 15px 10px;
  }
  h1 {
    font-size: 24px;
  }
  .input-field input {
    padding: 12px 15px 12px 20px;
    padding-right: 45px; 
    font-size: 14px;
  }
  .input-username ion-icon,
  .input-password ion-icon {
    right: 15px;
    font-size: 18px;
  }
  .remember-forgot {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
  }
  .create {
    font-size: 13px;
    margin-top: 15px;
  }
  .container button {
    font-size: 14px;
    height: 40px;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .container {
    width: 70%;
    padding: 20px;
  }
  h1 {
    font-size: 28px;
  }
  .input-field input {
    padding: 14px 20px 14px 20px;
    padding-right: 50px;
    font-size: 16px;
  }
  .input-username ion-icon,
  .input-password ion-icon {
    right: 20px;
    font-size: 20px;
  }
  .remember-forgot {
    flex-direction: row;
    justify-content: space-between;
    font-size: 14px;
  }
  .create {
    font-size: 14px;
    margin-top: 20px;
  }
  .container button {
    font-size: 16px;
    height: 45px;
  }
}
