@font-face {
    font-family: 'LINESeedSansTH';
    src: url('../fonts/LINESeedSansTH_W_Rg.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'LINESeedSansTH';
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 1.2rem;
    background: linear-gradient(120deg, #fff 0%, #68ff8e 40%, #00c3a0 100%);
    box-shadow: 0 0 40px 0 rgba(104, 255, 142, 0.15);
    transition: background 0.5s, box-shadow 0.5s;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    color: #333;
}

h1 {
    font-size: 2rem;
    color: #243e50;
}

* {
    box-sizing: border-box;
}

.login {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 7vh;
    width: 100vw;
    height: 95vh;
}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    margin: 7vh 0 0 0;
    padding: 0 30px;
    height: 100%;
    text-align: center;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 1;
        transform: translateY(15%);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.arrow-text {
    display: flex;
    align-items: center;
    position: absolute;
    top: 5px;
    left: 18px;
    font-size: 25px;
    transition: color 0.3s ease;
    z-index: 1;
    color: #000;
}

.arrow-text:hover {
    color: #006664;
}

.arrow-text:not(:hover) {
    color: #000;
}

.arrow-text div {
    font-size: 13px;
    margin: 0;
    padding: 10px 0;
    margin-left: 8px;
    text-decoration: none;
    cursor: default;
}

.thead {
    margin: 0 0 7px 0;
    font-size: 60px;
}

.profile-icon {
    font-size: 25px;
    background-image: linear-gradient(120deg, #cccccc 0%, #999999 50%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin: 15px;
    transition: all 0.3s ease;
    display: none;
}

.profile-icon:hover {
    background-image: linear-gradient(120deg, #68ff8e 0%, #00c3a0 50%, #006664 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.profile-icon:not(:hover) {
    background-image: linear-gradient(120deg, #cccccc 0%, #999999 50%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tp {
    color: #FFFFFF;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 0 0 25px 0;
}

span {
    font-size: 15px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

input {
    background-color: #eee;
    border: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    transition: all 0.2s ease;
}

input:focus {
    background-color: #ddd;
    outline: none;
    color: #000;
}

input:focus::placeholder {
    color: transparent;
    transition: all 0.2s ease;
}

.password-wrapper {
    width: 100%;
    color: #888;
    position: relative;
    margin: 0 0 25px 0;
}

.password-wrapper i {
    transition: all 0.3s ease;
}

.password-wrapper i:hover {
    color: #006664 ;
}

.password-wrapper i:not(:hover) {
    color: #888;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

.btnlogin {
    border-radius: 5px;
    border: 2px solid #008000;
    background-color: #008000;
    color: #FFFFFF;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    transition: all 0.3s;
    cursor: pointer;
}

.btnlogin:hover {
    background-color: #FFFFFF;
    color: #008000;
}

.btnlogin:active {
    transform: scale(0.975);
}

.btnlogin:focus {
    outline: none;
}

.btncancel {
    border-radius: 20px;
    border: 2px solid #b30000;
    background-color: #b60000;
    color: #FFFFFF;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    transition: all 0.3s;
    cursor: pointer;
}

.btncancel:hover {
    background-color: #FFFFFF;
    color: #FF4B2B;
}

.btncancel:active {
    transform: scale(0.975);
}

.btncancel:focus {
    outline: none;
}

.license {
    bottom: 130px;
    position: absolute;
    text-align: center;
    color: #333;
}

.text {
    color: #333;
    font-size: 16px;
    align-items: center;
}

.license img {
    vertical-align: middle;
    margin-top: -7px;
}

.license p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

@media only screen and (min-width: 768px) and (max-width: 3840px) {

    .login {
        margin-top: 0;
        height: 100vh;
    }

    form {
        align-items: center;
        justify-content: end;
        padding-top: 20px;
        padding-bottom: 20px;
        margin: 0;
    }

    .container {
        width: 435px;
        max-width: 100%;
        min-height: 630px;
        animation: fadeInUp 1s ease forwards;
    }

    .thead {
        margin: 0;
        font-size: 35px;
    }

    .profile-icon {
        display: block;
    }

    span {
        font-size: 15px;
        margin: 5px 0 7px 0;
        font-weight: 600;
    }

    input {
        margin: 8px 0;
        transition: all 0.2s ease;
    }

    .password-wrapper {
        margin: 0;
    }

    .btnlogin {
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }

    .btncancel {
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }

    .social-container {
        display: none;
    }

    .license {
        position: relative;
        padding-top: 30px;
        bottom: 0;
    }

    .assistance-text {
        font-size: 14px;
        margin: 5px 0 0 0;
    }

    .text {
        margin-left: 13px;
        align-items: center;
    }

    .license img {
        margin-top: -2px;
    }

    .license p {
        margin: auto;
        margin-bottom: 1em;
    }
}

@media only screen and (max-width: 932px) and (orientation: landscape) {
    body {
        overflow: scroll;
    }

    .login {
        margin: 50px 0 0;
        justify-content: end;
    }

    form {
        align-items: start;
        justify-content: start;
        margin: 60px 0 0 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        border-radius: 10px 10px 0 0;
    }

    .thead {
        margin: 0 0 7px 0;
        font-size: 50px;
    }

    .profile-icon {
        display: none;
    }

    .social-container {
        display: none;
    }

    .license {
        position: absolute;
        top: 10px;
        right: 10px;
        bottom: auto;
    }
}