/* LOGIN PAGE */
body.index-page {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../inc/gambar/kolej.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    box-sizing: border-box;
}

/* Header wrapper untuk logo dan title */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Jarak antara logo dan teks */
    margin-top: 20px;
    flex-wrap: wrap; /* Untuk mobile - logo akan atas/bawah */
}

/* Logo styles */
.logokvks, .kokedi {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover; /* Pastikan gambar tak kecut */
}

/* Untuk mobile - logo akan atas/bawah */
@media screen and (max-width: 768px) {
    .header-wrapper {
         /* Logo atas dan bawah SPKA */
        gap: 10px;
    }
    
    .logokvks, .kokedi {
        width: 60px;
        height: 60px;
    }
}

/* Headings */
body.index-page h1 {
    font-size: 60px;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

body.index-page h2 {
    font-size: 20px;
    margin: 10px 0 30px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* LOGIN BOX - Responsive */
body.index-page .login-box {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px 15px;
  border-radius: 15px; /* Lebih bulat untuk mobile */
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* INPUT & DROPDOWN - Responsive */
body.index-page input,
body.index-page select {
  width: 100%; /* Guna 100% untuk mobile */
  padding: 14px; /* Lebih besar sikit untuk mobile */
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px; /* Lebih bulat */
  font-size: 16px; /* Kekalkan 16px untuk elak zoom on focus */
  background: #fff;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body.index-page input:focus,
body.index-page select:focus {
  border-color: #6c2bd9;
  outline: none;
  box-shadow: 0 0 5px rgba(108,43,217,0.5);
}

/* BUTTON - Responsive */
body.index-page button {
  width: 100%; /* Guna 100% untuk mobile */
  max-width: 300px; /* Had maksimum */
  padding: 11px;
  background: #6c2bd9;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 15px; /* Lebih besar sikit */
  font-weight: bold;
  transition: background 0.3s ease;
}

body.index-page button:hover {
  background: #5a23b2;
}

/* LABEL */
body.index-page label {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
}

/* Password Wrapper - Responsive */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px; /* Lebih ruang untuk icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px; /* Besarkan icon */
    padding: 5px; /* Tambah padding untuk mudah tekan */
}

/* MARQUEE */
marquee {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* MEDIA QUERIES - Untuk screen yang lebih besar */
/* Tablet (600px ke atas) */
@media screen and (min-width: 600px) {
    .logokvks, .kokedi {
        width: 80px;
        height: 80px;
        top: 30px;
    }
    
    .logokvks {
        left: 30px;
    }
    
    .kokedi {
        right: 30px;
    }
    
    body.index-page h1 {
        font-size: 50px;
        margin-top: 70px;
    }
    
    body.index-page h2 {
        font-size: 18px;
    }
    
    body.index-page .login-box {
        padding: 30px 20px;
    }
    
    body.index-page button {
        width: 70%;
    }
}

/* Desktop (900px ke atas) */
@media screen and (min-width: 900px) {
    .logokvks {
        left: 480px; /* Kembali ke setting asal untuk desktop */
    }
    
    .kokedi {
        right: 480px;
    }
    
    body.index-page h1 {
        font-size: 60px;
        margin-top: 0;
    }
    
    body.index-page h2 {
        font-size: 20px;
    }
    
    body.index-page .login-box {
        width: 450px;
    }
    
    body.index-page input,
    body.index-page select {
        width: 90%;
    }
    
    body.index-page button {
        width: 50%;
    }
    
    .toggle-password {
        right: 25px;
    }
}

/* Landscape orientation untuk mobile */
@media screen and (max-width: 900px) and (orientation: landscape) {
    body.index-page {
        padding: 10px;
    }
    
    .logokvks, .kokedi {
        width: 50px;
        height: 50px;
        top: 10px;
    }
    
    body.index-page h1 {
        font-size: 30px;
        margin-top: 40px;
    }
    
    body.index-page h2 {
        font-size: 14px;
        margin: 5px 0 10px;
    }
    
    body.index-page .login-box {
        margin-top: 10px;
        padding: 15px;
    }
    
    body.index-page input,
    body.index-page select {
        padding: 10px;
        margin: 5px 0;
    }
    
    body.index-page button {
        padding: 10px;
        margin-top: 10px;
    }
}

/* Untuk screen yang sangat kecil (kurang dari 400px) */
@media screen and (max-width: 399px) {
    .logokvks, .kokedi {
        width: 50px;
        height: 50px;
    }
    
    body.index-page h1 {
        font-size: 32px;
    }
    
    body.index-page h2 {
        font-size: 14px;
    }
    
    body.index-page .login-box {
        padding: 20px 12px;
    }
}