* {
    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;
}

/* ปรับกล่อง Email และ Pin และ Password ให้ตรงกลาง */
.container-first {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 300px;
    margin-bottom: 180px;
}

/* ปรับกล่อง Email และ Pin และ Password ให้ตรงกลาง */

/* ส่วนของ Email */
.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 {
    width: 70%;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 10px;
    outline: none;
    font-family: 'Kanit', sans-serif;
}

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


.button-container {
    display: flex;
    justify-content: center;
    margin: 0px 70px;
    margin-top: 30px;
}

button {
    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);
    font-family: 'Kanit', sans-serif;
}

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

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

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

.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 */

/* Responsive Styles for Forget Password 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;
    }

    .container-second p {
        margin-left: 40px;
    }

    .button-container {
        margin: 30px 40px 0px 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;
    }

    .container-second p {
        font-size: 14px;
        margin-left: 30px;
        margin-top: 20px;
    }

    input {
        width: 85%;
    }

    .button-container {
        margin: 25px 30px 0px 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;
    }

    .container-second p {
        font-size: 13px;
        margin-left: 20px;
        margin-top: 15px;
        text-align: center;
    }

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

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

    button {
        width: 80%;
        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;
    }

    .container-second p {
        font-size: 12px;
        margin-left: 15px;
        width: 90%;
        margin: 15px auto 0;
    }

    input {
        font-size: 13px;
        width: 95%;
    }

    button {
        width: 90%;
        font-size: 13px;
    }

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

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

/* Fix for background image on small screens */
@media screen and (max-width: 768px) {
    body {
        background-position: center;
    }
}

/* Fix for loading messages */
@media screen and (max-width: 576px) {
    #loading-message {
        font-size: 14px;
    }
}

@media screen and (max-width: 375px) {
    #loading-message {
        font-size: 12px;
    }
}