@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body, body * {
  color: #fff;
}

/* Posisikan wrapper selalu di tengah layar secara dinamis */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
  background: #111;
}

/* Background dengan overlay lembut */
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../../images/login.png") center/cover no-repeat;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Glassmorphism card */
.wrapper {
  width: 400px;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Konten agar tetap center */
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title */
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
}

/* Input field */
.input-field {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  margin: 18px 0;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  transition: 0.2s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.input-field input {
  width: 100%;
  height: 42px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
}

/* Label naik */
.input-field input:focus ~ label,
.input-field input:valid ~ label {
  font-size: 0.8rem;
  top: 10px;
  transform: translateY(-120%);
}

/* Hilangkan autofill kuning */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Remember & Forgot */
.forget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 32px 0;
  font-size: 14px;
}

#remember {
  accent-color: #dcdcdc;
}

.forget label {
  display: flex;
  align-items: center;
}

.forget label p {
  margin-left: 8px;
}

/* Link */
.wrapper a {
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s ease;
}

.wrapper a:hover {
  text-decoration: underline;
}

/* Button */
button {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

button:hover {
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

/* Register section */
.register {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
}

/* Garis pemisah */
.separator {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 25px 0 15px;
}

/* Footer text dalam wrapper */
.footer-text {
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}

/* Responsif */
@media (max-width: 480px) {
  .wrapper {
    width: 100%;
    max-width: 340px;
    padding: 24px;
  }

  h2 {
    font-size: 1.5rem;
  }

  button {
    font-size: 14px;
    padding: 10px 16px;
  }
}
