/* 1. Hapus icon mata bawaan browser (Edge/IE/Chrome) agar tidak double */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* 2. Style Layout Utama */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 30px;
  padding: 120px 5vw 60px;
  box-sizing: border-box;
  text-align: center;
  flex-wrap: wrap;
  min-height: 100vh;
}

.left, .right {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 25px 20px;
  box-sizing: border-box;
}

.right {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.left h1 {
  font-size: clamp(22px, 2.5vw, 28px);
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.left h1 span {
  color: #800000;
  font-weight: bold;
}

.icon-placeholder img {
  width: clamp(80px, 10vw, 120px);
  height: clamp(80px, 10vw, 120px);
  border-radius: 50%;
  margin-top: 20px;
  border: 3px solid #800000;
  object-fit: cover;
}

.right h2 {
  font-size: clamp(18px, 2vw, 22px);
  color: #800000;
  margin-bottom: 8px;
}

.right p {
  margin-bottom: 20px;
  color: #555;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.5;
}

/* 3. Style Input Group & Icon Mata */
.input-group {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  position: relative; /* Wajib ada agar icon absolute mengikuti kotak ini */
}

.input-group input {
  width: 100%;
  padding: 11px 38px 11px 14px; /* Padding kanan 38px memberi ruang untuk icon */
  font-size: clamp(13px, 1.6vw, 15px);
  border: 2px solid #800000;
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: #660000;
  box-shadow: 0 0 6px rgba(128, 0, 0, 0.4);
}

.show-password {
  position: absolute;
  right: 15px; /* Jarak dari kanan */
  top: 50%;
  transform: translateY(-50%); /* Menengahkan vertikal */
  cursor: pointer;
  color: #800000;
  transition: color 0.3s;
  z-index: 10;
}

.show-password:hover {
  color: #660000;
}

/* 4. Style Tombol & Link */
.btn {
  width: 100%;
  padding: 11px;
  font-size: clamp(13px, 1.5vw, 15px);
  color: #fff;
  background-color: #800000;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: #660000;
  transform: scale(1.02);
}

.terms {
  margin-top: 8px;
  font-size: clamp(12px, 1.3vw, 13px);
  color: #555;
}

.terms a {
  color: #800000;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.login-link {
  margin-top: 15px;
  text-align: center;
  font-size: clamp(12px, 1.3vw, 13px);
}

.login-link a {
  color: #800000;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.login-link a:hover {
  color: #660000;
  text-decoration: underline;
}

.forgot-pass-link {
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}
.forgot-pass-link:hover {
  color: #e74c3c;
  text-decoration: underline;
}

/* --- 1. Style Tombol Google --- */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* PENTING: Agar padding tidak membuat tombol melebihi lebar container */
    box-sizing: border-box; 
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px; 
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: 'Arial', sans-serif;
    cursor: pointer;
}

.btn-google img {
    width: 20px;
    height: 20px;
    margin-right: 10px; /* Jarak antara logo dan teks */
}

.btn-google:hover {
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ccc;
    color: #333;
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- 2. Style Pemisah "ATAU" --- */
.divider {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 100%;
    /* PENTING: Mencegah divider melebar keluar */
    box-sizing: border-box; 
    margin: 20px 0;
}

.divider-line {
    flex: 1; /* Garis akan mengisi sisa ruang kiri & kanan */
    height: 1px; 
    background: #e0e0e0;
}

.divider-text {
    padding: 0 15px; 
    color: #888; 
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Mencegah teks turun baris */
}

/* --- 3. Fix Icon Mata Bawaan Browser --- */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { 
    display: none; 
}