/* ✅ Reset Default */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ✅ Background Full-Screen */
body {
  font-family: Arial, sans-serif;
  background-image: url("Gambar-Login.jpg"); /* Ganti dengan path gambar */
  background-repeat: no-repeat;
  background-size: cover; /* Pastikan gambar memenuhi layar */
  background-position: center;
  background-attachment: fixed; /* Supaya tidak bergeser */
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

/* Style the container for the login form */
.container {
  width: 100%;
  max-width: 400px;
}

/* Style the form */
form {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style the form labels and inputs */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: #ffe4e4;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  border: 1px solid black;
  margin-top: 10px;
  margin-bottom: 10px;
}

button[type="submit"]:hover {
  background-color: rgb(121, 66, 0);
  color: #ffffff;
}

/* Style the form links */
.links {
  text-align: center;
  margin-top: 20px;
}

.links a {
  color: white;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* Style for error and success messages */
.error,
.success {
  text-align: center;
  color: red;
  margin-bottom: 20px;
  font-size: 1rem;
}

.success {
  color: green;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Background color with opacity */
  overflow: auto;
  padding-top: 60px;
}

.modal-content {
  background-color: transparent;
  backdrop-filter: blur(20px);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
}

.modal-content h2 {
  text-align: center;
  color: #ffffff;
}

/* Style the modal close button */
.close {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 5px;
}

.close:hover,
.close:focus {
  color: rgb(203, 95, 0);
  text-decoration: none;
  cursor: pointer;
}

/* Form for Forgot Password and Registrasi */
#lupaPasswordForm,
#registrasiForm {
  display: none;
  margin-top: 20px;
}

form label {
  font-size: 1rem;
  color: white;
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form .forgot {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 15px;
  width: 100%;
  border: 1px solid #000000;
  border-radius: 5px;
  padding: 10px;
  background-color: white;
}

span {
  color: white;
}

form .batal {
  width: 30%;
  padding: 10px;
  margin-left: 120px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  border: 1px solid black;
  margin-top: 10px;
  margin-bottom: 10px;
}

form .batal:hover {
  color: white;
  background-color: rgb(121, 66, 0);
}

select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 2px solid #007bff;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

select:focus {
  border-color: #0056b3;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

select:hover {
  background-color: #e9ecef;
}

option {
  padding: 10px;
}

/* ✅ Media Query */

/* 🔹 Komputer & Laptop */
@media screen and (min-width: 1024px) {
  .container {
    max-width: 450px;
  }

  form {
    padding: 35px;
  }

  h1 {
    font-size: 2.2rem;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 1.1rem;
    padding: 12px;
  }

  button[type="submit"] {
    font-size: 1.1rem;
    padding: 12px;
  }
}

/* 🔹 Tablet */
@media screen and (max-width: 1024px) {
  body {
    height: 100vh;
  }

  .container {
    max-width: 45%;
  }

  form {
    padding: 25px;
  }

  h1 {
    font-size: 2rem;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 1rem;
    padding: 10px;
  }

  button[type="submit"] {
    font-size: 1rem;
    padding: 10px;
  }
}

/* 🔹 HP (Smartphone) */
@media screen and (max-width: 768px) {
  body {
    height: 100vh;
    background-size: cover; /* Supaya gambar tetap penuh */
    background-position: center;
  }

  .container {
    width: 55%;
    max-width: 95%;
  }

  form {
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 0.9rem;
    padding: 8px;
  }

  button[type="submit"] {
    font-size: 0.9rem;
    padding: 8px;
  }
}

/* 🔹 HP Kecil (≤ 480px) */
@media screen and (max-width: 480px) {
  body {
    height: 100vh;
    width: 100vw;
    background-size: cover; /* Supaya tidak terpotong */
    background-position: center;
  }

  .container {
    width: 75%;
    max-width: 100%;
  }

  form {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 0.8rem;
    padding: 6px;
  }

  button[type="submit"] {
    font-size: 0.8rem;
    padding: 6px;
  }
}
