@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset dasar dan styling body */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins';
    background-color: #DEFBFF; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    box-sizing: border-box; 
}

/* Kontainer utama untuk memusatkan auth-box */
.auth-container { /* Menggantikan login-container */
    display: flex;
    flex-direction: column; /* Untuk header dan auth-box */
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh; /* Memastikan kontainer mengisi tinggi viewport */
    padding: 20px;
    box-sizing: border-box;
}

/* Styling untuk header di halaman login */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 30px; /* Jarak antara header dan auth-box */
    /* Jika ingin header tetap di kiri atas, gunakan position: absolute seperti sebelumnya */
    /* position: absolute; top: 20px; left: 20px; */
}

.logo {
width: auto; 
height: 50px;
border-radius: 0; 
object-fit: contain; 
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-title {
    font-size: 24px;
    font-weight: 600;
    color: #265073; /* Warna yang serasi */
}

/* Styling untuk auth-box (menggantikan login-box) */
.auth-box {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px; /* Lebar maksimum untuk form */
    box-sizing: border-box;
}

.auth-box h2 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-top: 0; /* Hapus margin atas jika ada back-btn */
    margin-bottom: 10px;
}

.auth-box p {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Tombol kembali di halaman registrasi */
.back-btn {
    display: block; /* Agar bisa diberi margin bottom */
    text-align: left;
    margin-bottom: 20px; /* Jarak dari judul "Registrasi" */
    font-size: 15px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-btn i {
    margin-right: 8px;
}

.back-btn:hover {
    color: #265073;
}

/* Styling untuk input group */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888; /* Warna ikon lebih soft */
}

.input-group input {
    width: 100%; /* Gunakan 100% dan box-sizing untuk padding */
    padding: 12px 15px 12px 45px; /* Atas Kanan Bawah Kiri */
    border: 1px solid #ddd;
    border-radius: 8px; /* Border radius lebih modern */
    font-size: 15px;
    font-family: 'Poppins', sans-serif; /* Pastikan input juga pakai Poppins */
    box-sizing: border-box; /* Penting agar padding tidak menambah lebar */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input::placeholder {
    color: #aaa;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #265073; /* Warna border saat fokus, sesuai tombol */
    box-shadow: 0 0 0 3px rgba(38, 80, 115, 0.15); /* Efek glow saat fokus */
}

.btn-primary { /* Menggantikan .login-btn dan .register-btn */
    width: 100%;
    padding: 12px;
    background-color: #265073; /* Warna tombol permintaan */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500; /* Sedikit lebih tebal */
    font-family: 'Poppins', sans-serif; /* Tambahkan ini */
    text-decoration: none; /* Jika tombol adalah <a> */
    display: inline-block; /* Jika tombol adalah <a> */
    text-align: center; /* Jika tombol adalah <a> */
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px; /* Jarak dari input terakhir */
}

.btn-primary:hover {
    background-color: #1c3b56; /* Warna lebih gelap saat hover */
    transform: translateY(-1px); /* Efek terangkat sedikit */
}

.btn-primary:active {
    transform: translateY(0);
}

/* Styling untuk link "Forgot password?" dan "Sign Up" */
.forgot-password {
    display: block;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #265073;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.auth-box p a, /* Untuk link Sign Up di login dan link lain dalam auth-box */
.sign-up { 
    color: #265073; /* Warna link yang konsisten */
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover,
.auth-box p a:hover,
.sign-up:hover {
    text-decoration: underline;
}

/* Margin untuk paragraf "New User?" atau "Already have an account?" */
.auth-box .extra-link-p {
    margin-top: 25px;
    margin-bottom: 0; /* Hapus margin bawah jika ini elemen terakhir */
    font-size: 15px;
}