@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Poppins, sans-serif;
  margin-bottom: 0;
  padding-bottom: 0;
}

body {
  background-color: #e9e1d2;
  color: #3E2723;
}

.loginPage {
  display: flex;
  height: 100vh;
}

/* kiri */
.header {
  flex: 1;
  position: relative;
}

.bg-header {
  width: 100%;
  object-fit: cover;
  height: 100%;
  display: block;
}

/* kanan */
.formRegister {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
}

/* CARD */
.LoginBar {
  background-color: #F5F0E6;
  border-radius: 22px;
  width: 100%;
  max-width: 520px;        /* ✅ sedikit lebih besar biar mirip register */
  padding: 30px 32px;      /* ✅ lebih lega */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #D8D0C7;
}

/* title */
.title {
  text-align: center;
  margin-bottom: 6px;
}

.title1 {
  font-size: 44px;         /* ✅ lebih mirip screenshot register */
  font-weight: 800;
  color: #3E2723;
  line-height: 1.1;
}

.title2 {
  color: rgb(179, 133, 33);
}

.text-title {
  text-align: center;
  font-size: 12px;
  color: #B0A8A0;
  margin-bottom: 18px;     /* ✅ jarak bawah */
}

/* msg */
.msg {
  min-height: 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.msg.error { color: #d63b3b; }
.msg.info  { color: #2563eb; }

.form-group {
  margin-top: 15px;
}

label {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: #6D4C41;
}

input[type='email'],
input[type='password'],
input[type='text']{
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid #D8D0C7;
  font-size: 12px;
  background-color: #FDFBF7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder {
  color: #B0A8A0;
}

input:focus {
  outline: none;
  border-color: #4E6B50;
  box-shadow: 0 0 0 3px rgba(78, 107, 80, 0.18);
  background-color: #FFFFFF;
}

button[type="submit"] {
  margin-top: 1.8rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  background-color: #4E6B50;
  color: #F5F0E6;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(78, 107, 80, 0.35);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #435A47;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(78, 107, 80, 0.28);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(78, 107, 80, 0.2);
}

.confirm-akun {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  text-align: center;
  color: #6D4C41;
}

.confirm-akun a {
  color: #4E6B50;
  font-weight: 600;
  text-decoration: none;
}

.confirm-akun a:hover {
  text-decoration: underline;
}

/* responsive */
@media (max-width: 900px) {
  .loginPage { flex-direction: column; }
  .header { height: 160px; }     /* ✅ biar gambar masih keliatan */
  .formRegister { flex: unset; padding: 2rem 1.5rem; }
  .LoginBar { max-width: 100%; }
}
