/* Background dengan overlay gelap supaya teks lebih jelas */
.login-body {
  background: url("../images/gambarApotek1\ -\ Copy.png") no-repeat center center/cover;
  position: relative;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); /* opacity background */
  z-index: 1;
}

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.login-card h2 {
  margin: 12px 0;
  color: #003366;
}

.login-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Input Group */
.input-group {
  position: relative;
  margin-bottom: 18px; /* kasih jarak lebih lega */
}

.login-form input {
  width: 100%;
  padding: 12px 45px 12px 15px; /* kanan ditambah biar icon mata nggak numpuk */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.login-form input:focus {
  border-color: #2e8b57;
  outline: none;
  box-shadow: 0 0 5px rgba(46,139,87,0.4);
}

/* Icon mata */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #444;
}

.toggle-password:hover {
  color: #2e8b57;
}

/* Tombol */
.login-form button {
  width: 100%;
  padding: 12px;
  background: #2e8b57;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
}

.login-form button:hover {
  background: #246b44;
}

/* Pesan Error */
.error {
  background: #ffe5e5;
  color: #d9534f;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 14px;
}

/* Footer */
.login-footer {
  margin-top: 20px;
  font-size: 12px;
  color: #777;
}
