* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(120deg, rgb(15, 32, 53) 40%, #f5f6fa 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}


.login-container {
  display: flex;
  flex-direction: row;
  width: 900px;
  height: 550px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Bagian kiri */
.login-left {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 10px;
  color: #004aad;
}

p {
  margin-bottom: 40px;
  color: #555;
}

form {
  display: flex;
  flex-direction: column;
}

input {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}


.btn {
  background: #004aad;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 15px;
  font-size: 15px;
}

.divider {
  text-align: center;
  margin: 15px 0;
  font-size: 13px;
  color: #777;
}


/* Bagian kanan */
.login-right {
  flex: 1;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;   /* penting supaya gambar tidak keluar kotak */
}

.illustration {
  width: 100%;
  height: 100%;
}

.illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* gambar memenuhi area */
  object-position: center; /* fokus gambar di tengah */
  border-radius: 0;    /* hapus kalau tidak mau rounded */
}

/* Mobile */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column; /* urutan jadi stack */
    width: 80%;
    background: #0E1A52;
  }

  .login-right {
    display: none; /* sembunyikan foto di kanan */
  }

  .login-left {
    flex: none;
    width: 100%;
    padding: 40px 20px;
    background-image: url('../images/samar.webp');
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #0E1A52;
    position: relative;
  }

  .login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
  rgba(255, 255, 255, 0.7) 20%, 
  rgba(14, 26, 82, 1) 100%);
    z-index: 0;
  }



  .login-left > * {
    position: relative;
    z-index: 2; /* pastikan konten tetap terlihat di atas background */
  }
}