
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Konkhmer Sleokchher", Arial, Helvetica, sans-serif;
    background: url("../images/bg_TAG.jpeg") repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-attachment: fixed;
}

.logo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px; 
    z-index: 10; 
}


.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Container untuk login box */
.login-container {
    display: flex;
    /* flex-direction: column; Mengubah agar logo dan form berada dalam satu kolom pada mobile */
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    flex-direction: row; /* Pastikan flex-direction default di desktop */
}


.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; 
    margin-right: 10%;
}


.logo {
    width: 250px; 
    margin-bottom: 20px;
}

.form-container {
    width: 100%;
    text-align: left;
    padding-left: 0; 
}


h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    margin-left: 5px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    width: 100%;
}


.subtitle {
    font-size: 12px;
    color: #777;
    margin-bottom: 0px;
    margin-left: 5px;
    text-align: center;
}


label {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0 2px 0;
}


input[type="text"],
input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}


button {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

button:hover {
    background-color: darkred;
}

@media (max-width: 480px) {
    .login-container {
        flex-direction: column; 
    }

    .logo-container {
        margin-bottom: 20px; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 0;
    }

    .logo {
        width: 150px; 
    }

    .form-container {
        width: 100%;
        padding-left: 0; 
    }

    .form-container h1 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 12px;
    }

    .login-button {
        font-size: 14px;
        padding: 8px;
    }

    .logo-wrapper {
        width: 100%;
        max-width: 50px; 
        height: auto;
    }
}
