/* Pengaturan dasar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;

  /* --- GANTI PATH GAMBAR INI --- */
  background-image: url('../img/gedungti.png'); /* Ganti dengan path gambar Anda */

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Membuat background diam */

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px 0;
  box-sizing: border-box;
}

/* Kotak form (Efek Kaca) */
.login-container {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px); /* Efek blur */
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 500px; /* Lebar form login (bisa lebih kecil dari register) */
  text-align: center;
  margin: 20px 0;
}

/* Styling Logo */
.logo-container {
  margin-bottom: 1.5rem;
}

.logo-container img {
  max-width: 150px;
  height: auto;
}

/* Styling Teks Judul */
.login-form h2 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.login-form p {
  margin-bottom: 2rem;
  color: #666;
  font-size: 0.95rem;
}

/* Grup input */
.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

/* Styling untuk Input dengan Icon */
.input-with-icon {
  position: relative;
}

/* Aturan default ikon (KIRI) */
.input-with-icon i {
  position: absolute;
  left: 15px; 
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  z-index: 10;
}

/* Aturan default input */
.input-group input[type='text'],
.input-group input[type='password'],
.input-group input[type='email'] { /* Menambahkan email untuk login mahasiswa */
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem; /* Padding kiri 2.5rem (40px) untuk icon */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* Efek "Focus" */
.input-group input:focus {
  outline: none;
  border-color: #34495e;
  box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1); 
}

/* Opsi "Ingat Saya" dan "Lupa Password" */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  color: #555;
}

.remember-me input {
  margin-right: 0.5rem;
}

.forgot-password {
  color: #34495e;
  text-decoration: none;
  font-weight: 600;
}
.forgot-password:hover {
  text-decoration: underline;
}

/* Tombol */
.login-button {
  width: 100%;
  padding: 12px;
  background-color: #34495e;
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  margin-top: 1rem;
}

.login-button:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Link Bantuan */
.support-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}
.support-link p { margin: 0.5rem 0; }
.support-link a {
  color: #34495e;
  text-decoration: none;
  font-weight: 600;
}
.support-link a:hover {
  text-decoration: underline;
}

/* ---
  PERBAIKAN IKON MATA (HANYA UNTUK LOGIN)
--- */

/* 1. Atur posisi ikon mata (.toggle-password) ke KANAN */
.input-with-icon .toggle-password {
  left: auto; /* PENTING: Membatalkan 'left: 15px' */
  right: 15px;
  cursor: pointer;
}

/* 2. Atur padding HANYA untuk input#password */
.input-group input#password {
  padding-left: 2.5rem !important;  /* Padding 2.5rem (gembok) */
  padding-right: 2.5rem !important; /* Padding 2.5rem (mata) */
}


/* --- Responsif untuk Mobile --- */
@media (max-width: 520px) {
  body {
    padding: 1rem; 
  }
  .login-container {
    padding: 2rem;
    margin: 1rem; 
  }
}