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

body {
    background-image: url("/images/background-01.jpg");
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Kanit', sans-serif;
}

.container-first {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 300px;
    margin-bottom: 180px;
}

.container-second {
    background-color: #b6b6b6;
    border-radius: 10px;
    box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 400px;
}

.container-second h2 {
    color: #2D2926;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    font-size: 35px;
}

.container-second p {
    color: #2D2926;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    font-size: 15px;
    text-align: start;
    margin-left: 60px;
    margin-top: 25px;
}

input {
    font-family: 'Kanit', sans-serif;
    width: 70%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #013D66;
    box-shadow: 0 0 5px #013D66;
}

.forgot-password {
    text-align: right;
    margin-right: 70px;
    margin-bottom: 10px;
}

.forgot-password a {
    color: #2D2926;
    font-size: 15px;
    text-decoration: none;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin: 0px 70px;
}

button {
    font-family: 'Kanit', sans-serif;
    width: 48%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #013D66, #0B6DA3);
}

button {
    transform: scale(0.95);
    animation: clickEffect 0.2s;
}

button {
    background: linear-gradient(135deg, #0B3A53, #0E4D75);
}

/* ส่วนของ Pin */
.pin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;

}

.pin-box {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 24px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Kanit', sans-serif;
}

.pin-box:focus {
    border-color: #013D66;
    box-shadow: 0 0 5px #013D66;
}

/* ส่วนของ Pin */

/* .remember-me input {
    font-family: 'Kanit', sans-serif;

    padding: 100px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
} */
.remember-me {
    text-align: left;
    margin-left: 60px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}


/* input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
} */

label {
    text-align: center;
    font-size: 15px;
    color: #2D2926;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    justify-items: center;
}

/* Responsive Styles for Login Page */

/* Medium screens (768px-992px) */
@media screen and (max-width: 992px) {
    .container-first {
        margin-top: 300px;
    }

    .container-second {
        width: 90%;
        max-width: 400px;
        padding: 40px 20px;
    }

    .button-container {
        margin: 0px 40px;
    }

    .forgot-password {
        margin-right: 40px;
    }
}

/* Small screens (576px-768px) */
@media screen and (max-width: 768px) {
    .container-first {
        margin-top: 300px;
        margin-bottom: 100px;
    }

    .container-second {
        width: 90%;
        padding: 30px 15px;
    }

    .container-second h2 {
        font-size: 28px;
    }

    input {
        width: 85%;
    }

    .button-container {
        margin: 0px 30px;
    }

    .forgot-password {
        margin-right: 30px;
    }

    /* PIN section */
    .pin-container {
        gap: 5px;
    }

    .pin-box {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Extra Small screens (up to 576px) */
@media screen and (max-width: 576px) {
    .container-first {
        margin-top: 300px;
        margin-bottom: 80px;
    }

    .container-second {
        width: 95%;
        padding: 25px 10px;
    }

    .container-second h2 {
        font-size: 24px;
    }

    input {
        width: 90%;
        padding: 8px;
        font-size: 14px;
    }

    .button-container {
        margin: 0px 20px;
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
        font-size: 14px;
    }

    .forgot-password {
        margin-right: 20px;
        font-size: 14px;
    }

    .forgot-password a {
        font-size: 14px;
    }

    /* PIN section */
    .pin-container {
        gap: 4px;
    }

    .pin-box {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* Very Small screens (up to 375px) */
@media screen and (max-width: 375px) {
    .container-first {
        margin-top: 300px;
    }

    .container-second h2 {
        font-size: 22px;
    }

    input {
        font-size: 13px;
    }

    /* PIN section */
    .pin-container {
        gap: 3px;
    }

    .pin-box {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}