@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Kanit', sans-serif;
    /* background: linear-gradient(-10deg , #060e11 30%, #d9c108 30%); */
    background: linear-gradient(-10deg, #060e11 30%, #d9c108 30%);
    height: 100vh;
    overflow: hidden;
}

nav{
    margin: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;    
}

.logotext{
    font-weight: 500;
    font-size: 45px;
}

.icons{
    position: relative;
    top: 10px;
    display: flex;
}

.icons h2{
    font-weight: 400;
    color: black;
    margin-right: 15px;
    position: relative;
    bottom: 3px;
}

.icons ion-icon{
    width: 32px;
    height: 32px;
    margin-right: 15px;
    transition: 0.3s;
    cursor: pointer;
    color: black;
}

.icons ion-icon:hover{
    transform: scale(1.15);
    transition: 0.3s;
}

.logintext{
    text-align: center;
    font-weight: 400;
    background-color: #060e11;
    color: #d9c108;
    width: fit-content;
    padding-inline: 5px;
    margin-bottom: 50px;
}

u{
    position: relative;
    margin-left: 233px;
    cursor: pointer;
}

a{
    color: #060e11;
}

form{
    width: 90%;
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

input{
    width: 350px;
    height: 35px;
    margin-top: 15px;
    font-size: 19px;
    font-family: "Kanit", sans-serif;
}

input[type=text], input[type=password], input[type=email]{
    padding-left: 35px;
    border: none;
    border-bottom: 2px solid black;
    border-radius: 0px !important;
    background-color: #d9c108;
    outline: none;
    transition: 0.3s;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus{
    background-color: #b8a308;
}

input[type=submit]{
    background-color: #060e11;
    border: 2px solid #060e11;
    color: #d9c108;
    height: 40px;
    cursor: pointer;
    border-radius: 0px 5px;
}

input[type=submit]:hover{
    background-color: #060e11d9;
}

.input-container {
    position: relative;
}

.inputicon {
    position: absolute;
    left: 6px;
    top: 63%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}


::placeholder{
    color: #1a1a1a;
}

@media only screen and (max-width: 638px){
    nav{
        margin-inline: 0%;
    }

    body{
        height: 100vh !important;
        width: 100vw !important;
        overflow: hidden;
    }

    .icons ion-icon, .icons h2{
        margin-right: 8px;
    }

    .logotext{
        font-size: 35px;
    }

    input{
        width: 300px;
    }

    u{
        margin-left: 185px;
    }
}

@media only screen and (max-width: 470px){
    nav{
        flex-direction: column !important;
    }

    .logotext{
        font-size: 45px;
    }

    .logintext{
        margin-bottom: 30px;
    }

    form{
        margin-top: 0px;
    }
}

#alertpop{
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: #060e1156;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    display: none;
}

#alertpop>div{
    background-color: #d9c108;
    border-radius: 0px 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    gap: 20px;
}

#alertpop p{
    text-align: center;
    margin-top: 10px;
}

#alertpop h1{
    font-weight: 500;
}

#alertpop button{
    padding: 7px 18px;
    border: 2px solid #060e11;
    background-color: #060e11;
    color: #d9c108;
    cursor: pointer;
    font-family: "Kanit", sans-serif;
    transition: 0.3s;
    border-radius: 0px 5px;
    font-size: 16px;
}

#alertpop button:hover{
    background-color: #060e11db;
    transition: 0.3s;
}

#eye, #eye2{
    position: absolute;
    width: 25px;
    height: 25px;
    top: 20px;
    right: 5px;
    cursor: pointer;
    color: #060e11d7;
}

#eye:hover, #eye2:hover{
    color: #060e11ce;
}

#footer{
    color: white;
    position: absolute;
    bottom: 10px;
    font-size: 18px;
    text-align: center;
    margin: auto;
    width: 100%;
    text-decoration: none;
}