/* Import font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Times+New+Roman&family=Arial&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Mencegah scroll yang tidak perlu */
}

body {
    /* Ganti 'background.jpg' dengan file gambar latar Anda */
    background: url('../../../assets/images/library1.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* Blur effect untuk background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(3px); /* Atur tingkat blur di sini */
    z-index: -1;
}

/* --- Top Bar --- */
.top-bar {
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    color: #fff;
    background-color: #f0f0f0; 
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 60px; /* Atur tinggi logo Anda di sini */
}

.system-title h1 {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    margin: 0;
    font-weight: normal;
    color: #850202;
}

/* --- Login Container --- */
.login-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    color: #8B0000; /* Dark Red */
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.login-box p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-group input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 10px 10px 10px 35px; /* Padding kiri untuk ikon */
    font-size: 1rem;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-group input:focus {
    border-bottom-color: #8B0000; /* Dark Red */
}

.input-group .icon-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
}

.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background-color: #850202; /* Maroon/Dark Red */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #8B0000; /* Warna lebih terang saat di-hover */
}


/* ================== KODE BARU DIMULAI DI SINI ================== */

.options-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Membuat elemen sejajar di bagian bawah */
    margin-top: 25px; /* Jarak dari tombol login */
    width: 100%;
}

.options-container p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px; /* Mengatur ulang margin dari <p> global */
}

.forgot-password {
    text-align: left;
}

.reset-link {
    color: #8B0000; /* Warna merah marun */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.reset-link:hover {
    text-decoration: underline;
}

.register-section {
    text-align: right;
}

.register-button {
    display: inline-block;
    background-color: #E48C33; /* Warna oranye-coklat */
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.register-button:hover {
    background-color: #D27D2D; /* Warna oranye lebih gelap */
}

/* ================== KODE BARU BERAKHIR DI SINI ================== */


/* --- Media Queries untuk Responsivitas --- */

/* Untuk Tablet */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    .system-title {
        margin-top: 10px;
    }
    .system-title h1 {
        font-size: 1.2rem;
    }
    .login-box {
        padding: 30px;
    }
    .login-box h2 {
        font-size: 2rem;
    }
}

/* Untuk Mobile */
@media (max-width: 480px) {
    body {
        overflow: auto; /* Izinkan scroll jika konten terlalu panjang */
    }
    .top-bar {
        padding: 10px 3%;
    }
    .logo-container img {
        height: 45px; /* Logo diperkecil di mobile */
    }
    .system-title h1 {
        font-size: 1rem;
    }
    .login-container {
        align-items: flex-start; 
        padding-top: 5vh;
    }
    .login-box {
        padding: 25px;
        margin: 0 15px;
    }
    .login-box h2 {
        font-size: 1.8rem;
    }
    .login-box p {
        font-size: 0.9rem;
    }

    /* --- PENYESUAIAN RESPONSIVE BARU --- */
    .options-container {
        flex-direction: column; /* Menumpuk elemen secara vertikal */
        align-items: center;  /* Menengahkan elemen */
        text-align: center;
    }
    .forgot-password, .register-section {
        text-align: center; /* Memastikan teks di tengah */
        width: 100%;
        margin-bottom: 20px; /* Memberi jarak antar bagian */
    }
    .register-section {
        margin-bottom: 0; /* Bagian terakhir tidak perlu margin bawah */
    }
    /* --- AKHIR PENYESUAIAN --- */
}

/* ================== PENAMBAHAN CSS UNTUK REGISTER DI SINI ================== */

/* Tombol Register Baru (Orange) */
.register-main-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background-color: #E48C33; /* Warna oranye-coklat */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.register-main-button:hover {
    background-color: #D27D2D; /* Warna oranye lebih gelap */
}

/* Link "Back to Login" Baru */
.back-to-login {
    margin-top: 25px; /* Jarak dari tombol register */
    text-align: center;
}

.back-to-login p {
    margin: 5px 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5; /* Memberi jarak baris jika ter-wrap */
}

.login-link {
    color: #8B0000; /* Warna merah marun */
    font-weight: bold;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* ================== AKHIR PENAMBAHAN CSS REGISTER ================== */


/* =============== CSS BARU UNTUK HALAMAN FORGET PASSWORD =============== */

.email-input-box {
    background-color: #EAEAEA; /* Warna abu-abu untuk kotak input */
    border: none;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin: 20px 0;
}

.info-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 auto 25px auto;
    max-width: 80%;
    line-height: 1.4;
}

.reset-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background-color: #8B0000; /* Warna merah marun */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-button:hover {
    background-color: #A52A2A; /* Merah lebih terang */
}

/* Style untuk Notifikasi */
.notification-hidden {
    display: none;
}

#notification {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    background-color: #d4edda; /* Hijau untuk sukses */
    color: #155724; /* Teks hijau tua */
    border: 1px solid #c3e6cb;
    font-weight: bold;
}

/* ===== KODE BARU FORGET PASSWORD DITAMBAHKAN DI SINI ===== */
.back-to-login-alt {
    margin-top: 25px;
    text-align: center;
}
.back-to-login-alt p {
    margin: 0 0 5px 0;
    color: #555;
    font-size: 0.9rem;
}
.back-to-login-alt a {
    color: #8B0000;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1rem;
    text-underline-offset: 4px;
}
/* ===== AKHIR KODE BARU ===== */

/* =============== AKHIR CSS UNTUK FORGET PASSWORD =============== */