/* === RESET & FONT === */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #F9FAFB;
  color: #333;
}

/* === CONTAINER UTAMA === */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  /* HAPUS display: flex; DARI SINI */
}

/* === LINGKARAN BIRU (KODE ANDA) === */
.container::before {
  content: "";
  position: absolute;
  width: 1500px;
  height: 2000px;
  border-radius: 70%;
  background-image: linear-gradient(-45deg, #0A73FF 0%, #399DFF 100%);
  top: 10%;
  left: 5%;
  transform: translate(-50%, -50%);
  z-index: 1;
  /* Di belakang konten */
}

/* === 1. PANEL KIRI (INFO) === */
.info-panel {
  /* Gunakan position absolute */
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  /* Lebar 45% */
  height: 100%;
  padding: 2.5rem 3rem;
  color: #fff;
  /* Teks jadi putih */
  z-index: 2;
  /* Di atas lingkaran biru */
  display: flex;
  flex-direction: column;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 32px;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.info-content {
  margin-top: 10rem;
  /* Dorong teks ke bawah */
}

.info-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.info-content p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 500px;
}

/* === 2. PANEL KANAN (FORM) === */
.form-panel {
  /* Gunakan position absolute */
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  /* Lebar 55% */
  height: 100%;
  z-index: 2;
  /* Di atas lingkaran biru */
  display: flex;
  flex-direction: column;
}

/* Navigasi di atas form */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 3rem;
  width: 100%;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #0A73FF;
}

.main-nav a.active {
  color: #0A73FF;
  font-weight: 600;
}

/* Wrapper untuk menengahkan login-card */
.login-card-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3rem;
  width: 100%;
}

/* Kartu Login Putih */
.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  padding: 3.5rem;
  width: 100%;
  max-width: 480px;
}

.login-card h2 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2.5rem;
}

/* === STYLE LABEL (DIMUNCULKAN) === */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
}

/* Form Styling */
.login-form .input-group {
  position: relative;
  margin-bottom: 1.1rem;
  /* Sesuaikan margin */
}

.form-control {
  width: 100%;
  height: 50px;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
  color: #999;
}

.form-control:focus {
  border-color: #399DFF;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(57, 157, 255, 0.2);
}

/* === PERBAIKAN IKON TOGGLE === */
.toggle-password {
  position: absolute;
  right: 15px;
  top: auto;
  /* Hapus top: 50% */
  bottom: 0;
  /* Sejajarkan ke bawah grup */
  height: 50px;
  /* Samakan tinggi dengan input */
  transform: none;
  /* Hapus transformY */

  /* Gunakan flex untuk menengahkan ikon <i> */
  display: flex;
  align-items: center;

  cursor: pointer;
  color: #999;
  z-index: 2;
}

.toggle-password:hover {
  color: #333;
}

/* Link Lupa Sandi */
.forgot-link {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  /* Beri jarak dari input */
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Tombol Login */
.btn-login {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background-color: #0A73FF;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-login:hover {
  background-color: #0062E0;
}

/* Footer Form */
.login-footer {
  color: #999;
  margin-top: 2rem;
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.footer-logos img {
  height: 40px;
}

.copyright {
  font-size: 0.85rem;
  color: #ffffff;
}

/* Hapus .sr-only jika tidak dipakai, atau biarkan */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Notifikasi Error */
.alert {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}


/* === RESPONSIVE (Tampilan HP) === */
@media (max-width: 900px) {

  /* Hapus layout absolute di HP */
  .info-panel,
  .form-panel {
    position: relative;
    width: 100%;
    height: auto;
  }

  /* Lingkaran biru dikecilkan dan dipindah ke atas */
  .container::before {
    width: 1000px;
    height: 1000px;
    left: 50%;
    top: 0;
    transform: translate(-50%, -60%);
  }

  .info-panel {
    min-height: 250px;
    /* Beri tinggi sedikit */
    padding: 2rem 1.5rem;
  }

  .info-content {
    margin-top: 2rem;
    /* Naikkan teks */
  }

  .info-content h1 {
    font-size: 1.8rem;
  }

  .info-content p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .form-panel {
    background-color: #F9FAFB;
    /* Pastikan bg putih */
  }

  .main-nav {
    padding: 2rem 1.5rem;
  }

  .login-card-wrapper {
    align-items: flex-start;
    padding: 0 1.5rem;
  }

  .login-card {
    box-shadow: none;
    padding: 1.5rem 0;
    max-width: 100%;
    background: transparent;
  }

  .login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

}


  /* === STYLE BARU UNTUK LOGO HEADER (POIN 1) === */
  .support-logo-header {
    text-align: center;
    margin-bottom: 2.5rem;
    /* Jarak ke judul h2 */
  }

  .support-title {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 0.75rem;
  }

  .footer-links {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
    max-width: 450px;
    align-self: center;
    /* Menengahkan di dalam info-panel */
  }

  .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: opacity 0.2s;
  }

  .footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
  }

  .footer-links .copyright {
    margin-top: 10px;
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.4;
  }