@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Prompt","serif";
}

body {
    background-color: #DEDEDE;
}

main {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
.container {
    background-color: white;
    width: 500px;
    padding: 30px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;

    & h2 {
        font-weight: 400;
        font-size: 36px;
    }
}

.form-login {
    width: 100%;
    display: flex;
    flex-direction: column;

    & a {
        color: #329BE5;
    }
}

.form-login h1 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
}

.form-login h3 {
    margin-top: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
}

.inputbox {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.inputbox.show-password {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
}

.inputbox.show-password img {
    cursor: pointer;
    height: 24px;
}

.inputbox input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 18px;
}

/* .inputbox span {
    position: absolute;
    left: 0;
    padding: 10px;
    font-size: 18px;
    transition: 0.5s;
    color: gray;
    pointer-events: none;
} */

/* .inputbox input:valid~span,
.inputbox input:focus~span,
.inputbox input.has-value~span {
    color: #BB0FCB;
    transform: translateX(11px) translateY(-13px);
    padding: 0 10px;
    font-size: 16px;
    background: white;
} */

/* .inputbox input:valid, */
/* .inputbox input:focus {
    border: 2px solid #BB0FCB;
} */

/* .inputbox select {
    background-color: white;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid gray;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
} */


.box-button {
    margin-top: 2rem;
    margin-bottom: 1rem;
    & span {
        font-weight: 300;
    }

    & button {
        margin-top: 5px;
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 5px;
        background: #BB0FCB;
        color: white;
        font-size: 18px;
        cursor: pointer;
        transition: 0.3s;
    }
}

.box-link {
    & a {
        color: #329BE5;
    }
}

.link-return {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #329BE5;
}

/* Mobile เล็กมาก */
@media (max-width: 480px) {
    body {
        background-color: white;
    }

    main {
        height: auto;
        margin-top: 50px;
    }
    .container {
        width: 100%;
        padding: 1rem;
    }
  }
  
  /* Mobile กลาง-ใหญ่ */
  @media (min-width: 481px) and (max-width: 767px) {
    body {
      background-color: lightgreen;
    }
  }
  
  /* Tablet */
  @media (min-width: 768px) and (max-width: 991px) {
    .toggle-menu {
        display: block;
    }
    .menu {
        display: none;
    }
    .menu.active {
        display: block;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        height: auto;
        padding: 1rem 2rem;
        background-color: white;
        & ul {
            display: flex;
            flex-direction: column;
        }
        & li {
            margin-bottom: 10px;
        }
    }
  }
  