/* ===== Background halaman ===== */
body {
  margin: 0;
  height: 100vh;
  background: url('../images/mi-trimaja3.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

/* ===== Card utama (login & register) ===== */
.auth-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
  width: 360px;
  text-align: center;
  border: 1px solid #cfd8dc;
  animation: fadeIn 0.6s ease;
}

.auth-container h2 {
  margin-bottom: 20px;
  color: #004d26;
  font-size: 22px;
  font-weight: 600;
}
.auth-container h2 span {
  font-size: 15px;
  color: #007b55;
  font-weight: 500;
}

/* ===== Input & Label ===== */
label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #aaa;
  margin-top: 5px;
  margin-bottom: 15px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #007b55;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 85, 0.3);
}

/* ===== Tombol utama ===== */
button {
  background: #007b55;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

button:hover {
  background: #005e40;
  transform: translateY(-1px);
}

/* ===== Link antar halaman (login ↔ register) ===== */
p {
  font-size: 13px;
  color: #333;
  margin-top: 10px;
}
p a {
  color: #007b55;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
p a:hover {
  text-decoration: underline;
  color: #005e40;
}

/* ===== Animasi lembut ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsif (mobile) ===== */
@media (max-width: 480px) {
  .auth-container {
    width: 90%;
    padding: 30px;
  }
}
