@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Pastikan ID atau class carousel awak boleh ditekan */
#annCarousel, .carousel-item {
    cursor: pointer;
    position: relative;
    z-index: 10; /* Biar dia duduk lapisan atas sekali */
}

/* Tambahan: bagi efek hover sikit supaya user tahu boleh klik */
.carousel-item .p-3:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #f5ce29 !important;
    transition: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0e0e0e; 
    color: white;
    margin: 0;
    display: flex;
    align-items: center; 
    justify-content: center; 
    min-height: 100vh;
    padding: 20px; /* Jarak dlm mobile */
}

/* Container utama */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px; /* Untuk desktop */
    min-height: 80vh;
}

/* Bahagian Form Section */
.auth-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Kotak Hitam Login */
.login-dark-mode {
    background: #111 !important;
    color: white !important;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px; /* Saiz ideal dlm mobile & desktop */
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Input & Button */
.input-group-custom { margin-bottom: 20px; text-align: left; }

.form-control {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #333;
    background: #222;
    color: white;
}

.btn-auth {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-safrich { background: #FFD700; color: black; }
.btn-safrich:hover { background: #e6c200; }

.btn-google {
    background: white;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* Visual Section (Hanya Desktop) */
.auth-visual {
    flex: 1;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=1000');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .auth-visual { display: none; }
    .auth-container { justify-content: center; }
}

@media (max-width: 576px) {
    body { padding: 15px; }
    .login-dark-mode { padding: 30px 20px; }
}

/* Warna teks peratus supaya tak 'invisible' */
.progress-text {
    color: #333; /* Warna asal dlm light mode */
}

/* Bila Dark Mode aktif */
.dark-mode .progress-text {
    color: #ffffff !important;
}

/* Style tambahan untuk info kelas baru */
.extra-class-info .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 12px;
}

.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}
#annCarousel {
    position: relative;
    z-index: 5;
}