@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700|Poppins:400,500&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
}
.bg-img {
  background: url('../images/resource/login-bg.jpg') no-repeat center center/cover;
  min-height: 100vh;
  position: relative;
}
.bg-img:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.7);
}
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 999;
  text-align: center;
  padding: 40px 25px;
  width: 100%;
  max-width: 380px;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,0.04);
  box-shadow: -1px 4px 28px 0px rgba(0,0,0,0.75);
  border-radius: 12px;
}
.content header {
  color: white;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
  font-family: 'Montserrat', sans-serif;
}
.field {
  position: relative;
  height: 45px;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.94);
  border-radius: 6px;
  padding: 0 10px;
}
.field span {
  color: #222;
  font-size: 16px;
  margin-right: 8px;
}
.field input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #222;
  font-size: 15px;
}
.space {
  margin-top: 16px;
}
.show {
  position: absolute;
  right: 13px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  display: none;
  cursor: pointer;
  font-family: 'Montserrat',sans-serif;
}
.pass-key:valid ~ .show {
  display: block;
}
.pass {
  text-align: right;
  margin: 10px 0;
}
.pass a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}
.pass a:hover {
  text-decoration: underline;
}
.field input[type="submit"] {
  background: linear-gradient(45deg, #1e57d9, #851edc);
  color: white;
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
.field input[type="submit"]:hover {
  background: linear-gradient(45deg, #1847b4, #7016bc);
}
.signup {
  font-size: 14px;
  color: white;
  margin-top: 15px;
}
.signup a {
  color: #3498db;
  text-decoration: none;
}
.signup a:hover {
  text-decoration: underline;
}

/* 🔥 Responsive */
@media(max-width: 768px) {
  .content {
    width: 90%;
    padding: 30px 20px;
  }
  .content header {
    font-size: 22px;
  }
}
@media(max-width: 480px) {
  .content {
    width: 95%;
    padding: 25px 15px;
  }
  .content header {
    font-size: 20px;
  }
  .field input {
    font-size: 14px;
  }
  .pass a {
    font-size: 13px;
  }
  .signup {
    font-size: 13px;
  }
}

/* Normal fields (text + password) */
.field {
  position: relative;
  height: 45px;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.94);
  border-radius: 6px;
  margin-bottom: 16px; /* spacing between fields */
}

/* Icons inside input fields */
.field span {
  color: #222;
  width: 40px;
  text-align: center;
  line-height: 45px;
}

/* Inputs (text, password) */
.field input:not([type="submit"]) {
  height: 100%;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #222;
  font-size: 16px;
  font-family: 'Poppins',sans-serif;
  padding-left: 5px;
}

/* Submit button (separate style) */
.field input[type="submit"] {
  background: linear-gradient(45deg, #1e57d9, #851edc);
  color: white;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat',sans-serif;
  border-radius: 6px;
  border: none;
  width: 100%;
  height: 45px;
  display: block;
  margin: -12px;
}

.field input[type="submit"]:hover {
  background: linear-gradient(45deg, #1847b4, #7016bc);
}
