/* Background mirip login */
.register-body {
  background: url("../images/gambarApotek1 - Copy.png") no-repeat center center/cover;
  position: relative;
  height: 100vh;
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Card utama */
.register-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* Logo (opsional) */
.register-logo {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #2e8b57;
}

/* Judul dan subtitle */
.register-card h2 {
  color: #003366;
  margin: 12px 0;
}

.register-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

/* Input field */
.register-form .input-group {
  position: relative;
  margin-bottom: 18px;
}

.register-form input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
  box-sizing: border-box;
}

.register-form input:focus {
  border-color: #2e8b57;
  outline: none;
  box-shadow: 0 0 5px rgba(46,139,87,0.4);
}

/* Tombol daftar */
.register-form button {
  width: 100%;
  padding: 12px;
  background: #2e8b57;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 5px;
}

.register-form button:hover {
  background: #246b44;
  transform: scale(1.02);
}

/* Link ke login */
.register-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #555;
}

.register-footer a {
  color: #2e8b57;
  text-decoration: none;
  font-weight: 600;
}

.register-footer a:hover {
  text-decoration: underline;
}

/* Error message */
.error {
  background: #ffe5e5;
  color: #d9534f;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 14px;
}

/* ====== Tambahan untuk ikon mata password ====== */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px; /* ruang untuk ikon */
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 16px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #2e8b57;
}

/* Pesan error (gagal) */
.error {
  background: #ffe5e5;
  color: #d9534f;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 14px;
}

/* Pesan sukses (berhasil) */
.success {
  background: #e6ffea;
  color: #28a745;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #b2f0c0;
}


