@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600;700;900&display=swap');
* {
    font-family: "NSimSun", "SongTi TC";
    text-align: center;
}

h1 {
    font-size: 50PX;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    background-image: url('./mainbg.jpg');
    overflow: hidden;
}

#dog {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 25%;
    height: auto;
}

.login {
    position: absolute;
    display: block;
    top: 20%;
    width: 40%;
    left: 30%;
    height: 60%;
    color: #6a635a;
}

#login {
    font-size: 50px;
    letter-spacing: 10px;
}

#id-link {
    color: #6a635a;
    text-decoration: underline;
}

#password-title {
    font-size: 50px;
    letter-spacing: 10px;
}

#error-modal {
    display: block;
    position: fixed;
    top: 10%;
    left: 10%;
    background-color: white;
    z-index: 1000;
    width: 80%;
    height: 20%;
    border: solid;
    border-color: #000;
    border-width: 2px;
    border-radius: 30PX;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#error-content {
    position: relative;
    width: 100%;
    height: 100%;
}

#error-message {
    position: absolute;
    top: 40%;
    width: 100%;
    height: 20%;
    font-size: 20px;
    color: red;
    font-weight: bold;
}

#error-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 30px;
}

.forget-message {
    position: absolute;
    top: 40PX;
    font-size: 15PX;
    width: 80%;
    left: 10%;
}

.idwrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 5vh;
    font-size: 20PX;
}

#id-information {
    color: #6a635a;
    position: absolute;
    top: 40px;
    width: 80%;
    left: 10%;
}

#login-info-icon {
    position: absolute;
    right: 10PX;
}

.tippy-popper {
    color: white !important;
    width: auto;
}

.passwordwrap {
    margin-top: 5vh;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 20PX;
}

i {
    cursor: pointer;
}

.far {
    position: absolute;
    right: 10PX;
}

#plsregister,
#plsforget {
    color: #6a635a;
    text-decoration: underline;
}

#plsregister:hover {
    color: #6a635a;
}

#set-password {
    display: flex;
    align-items: center;
    width: 100%;
}

#check-password {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

#set-nickname {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

#check-id,
#set-email {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

#password-message {
    position: absolute;
    top: 40PX;
    left: 10PX;
    font-size: 15PX;
}

#nickname-length {
    position: absolute;
    right: 10PX;
    font-size: 15PX;
}

#id-length {
    position: absolute;
    right: 10PX;
    font-size: 15PX;
}

#email-reminder {
    position: absolute;
    right: 10PX;
    font-size: 15PX;
}

#forget-password {
    position: absolute;
    width: 70%;
    left: 15%;
    top: 40PX;
}

#to-forget-link {
    color: #6a635a;
    text-decoration: underline;
}

#to-forget-link:hover {
    color: #6a635a;
    text-decoration: underline;
}

.submit {
    border-color: #6a635a;
    border-width: 2px;
    font-size: 20PX;
    margin-top: 20PX;
}

#next {
    visibility: hidden;
    position: relative;
    top: 20px;
}

.hint {
    background-color: #DED5CA;
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 60px;
    width: 40%;
    border-radius: 30px;
}

#register-hint {
    background-color: #DED5CA;
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 50px;
    width: 30%;
    border-radius: 30px;
}

.hint-wrap {
    position: relative;
    height: 100%;
    width: 100%;
    text-align: center;
    font-size: 15PX;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dog2 {
    position: absolute;
    top: -80px;
    right: 70px;
    width: 200px;
}

.registerwrap {
    position: relative;
    top: 10PX;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 80%;
    left: 10%;
}

#registerbtn,
#resetbtn {
    border-color: #6a635a;
    border-width: 2px;
    font-size: 20PX;
    visibility: hidden;
    width: 20%;
    position: relative;
    top: 10PX;
    font-size: 20PX;
}

.register-input {
    margin-bottom: 20px;
}

.inputbox {
    border-color: #6a635a;
    border-width: 2px;
    text-align: left;
    font-size: 18PX;
}

#dog3 {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 30%;
    height: auto;
}

.hint_text {
    position: absolute;
    top: 70%;
    left: 30px;
    font-size: 1.5vw;
}


/* 預設樣式為電腦版 */


/* 大螢幕 (e.g.橫躺平板) 922~1200px */

@media (max-width: 1200px) {
    #dog3 {
        display: none;
        position: absolute;
        bottom: 30px;
        left: 30px;
        width: 30%;
        height: auto;
    }
    #dog2 {
        display: none;
        position: absolute;
        top: -48px;
        right: 10px;
        width: 120px;
    }
    #dog {
        display: none;
    }
    .hint {
        display: none;
        background-color: #DED5CA;
        position: absolute;
        bottom: 10px;
        right: 10px;
        height: 70px;
        width: 90%;
        left: 5%;
        border-radius: 20px;
    }
}


/* 中螢幕 (e.g.直立平板) 768~922px */

@media (max-width: 992px) {
    #error-modal {
        top: 30%;
    }
    #login {
        font-size: 60px;
    }
    #password-title {
        font-size: 60px;
        letter-spacing: 20px;
    }
    #forget-password {
        position: absolute;
        width: 70%;
        left: 15%;
        top: 60PX;
    }
    .forget-message {
        position: absolute;
        top: 60PX;
        font-size: 20PX;
        width: 80%;
        left: 10%;
    }
    #resetbtn {
        visibility: hidden;
        width: 40%;
        position: relative;
        top: 10PX;
        font-size: 30PX;
    }
    #password-message {
        position: absolute;
        top: 60PX;
        left: 10PX;
        font-size: 20PX;
    }
    .idwrap {
        position: relative;
        display: flex;
        align-items: center;
        margin-top: 5vh;
        font-size: 20PX;
        width: 100%;
    }
    .login {
        position: absolute;
        display: block;
        top: 20%;
        width: 80%;
        left: 10%;
        height: 60%;
        color: #6a635a;
    }
    .inputbox {
        border-color: #6a635a;
        border-width: 2px;
        text-align: left;
        font-size: 25PX;
        width: 100%;
    }
    #id-information {
        color: #6a635a;
        position: absolute;
        top: 60px;
        width: 80%;
        left: 10%;
        font-size: 20px;
    }
    #dog3 {
        display: none;
        position: absolute;
        bottom: 30px;
        left: 30px;
        width: 30%;
        height: auto;
    }
    #dog2 {
        position: absolute;
        top: -48px;
        right: 10px;
        width: 120px;
    }
    #dog {
        display: none;
    }
    .hint {
        background-color: #DED5CA;
        position: absolute;
        bottom: 10px;
        right: 10px;
        height: 70px;
        width: 90%;
        left: 5%;
        border-radius: 20px;
    }
    .hint-wrap {
        position: relative;
        height: 100%;
        width: 100%;
        text-align: center;
        font-size: 22PX;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    #register-hint {
        background-color: #DED5CA;
        position: absolute;
        bottom: 10px;
        right: 5%;
        height: 70px;
        width: 90%;
        border-radius: 30px;
    }
    .passwordwrap {
        margin-top: 5vh;
        position: relative;
        display: flex;
        align-items: center;
        font-size: 20PX;
    }
    .submit {
        border-color: #6a635a;
        border-width: 2px;
        font-size: 20PX;
        margin-top: 35PX;
    }
    #register-title {
        font-size: 40PX;
    }
}


/* 小螢幕 (e.g.橫躺手機) 577~767px */

@media (max-width: 767px)and(orientation: landscape) {
    #dog3 {
        display: none;
        position: absolute;
        bottom: 30px;
        left: 30px;
        width: 30%;
        height: auto;
    }
    #dog2 {
        display: none;
        position: absolute;
        top: -48px;
        right: 10px;
        width: 120px;
    }
    #dog {
        display: none;
    }
    .hint {
        display: none;
        background-color: #DED5CA;
        position: absolute;
        bottom: 10px;
        right: 10px;
        height: 70px;
        width: 90%;
        left: 5%;
        border-radius: 20px;
    }
}


/* 超小螢幕 (e.g.直立手機), 576px以下 */

@media (max-width: 576px) {
    #error-modal {
        top: 30%;
    }
    #login {
        font-size: 30px;
    }
    #password-title {
        font-size: 30px;
        letter-spacing: 10px;
    }
    #forget-password {
        position: absolute;
        width: 70%;
        left: 15%;
        top: 40PX;
    }
    #email-reminder {
        display: none;
    }
    #resetbtn {
        visibility: hidden;
        width: 60%;
        position: relative;
        top: 10PX;
        font-size: 20PX;
    }
    #password-message {
        position: absolute;
        top: 40PX;
        left: 10PX;
        font-size: 20PX;
    }
    .idwrap {
        position: relative;
        display: flex;
        align-items: center;
        margin-top: 5vh;
        font-size: 20PX;
        width: 100%;
    }
    .login {
        position: absolute;
        display: block;
        top: 25%;
        width: 90%;
        left: 5%;
        height: 80%;
        color: #6a635a;
    }
    .inputbox {
        border-color: #6a635a;
        border-width: 2px;
        text-align: left;
        font-size: 18PX;
        width: 100%;
    }
    #id-information {
        color: #6a635a;
        position: absolute;
        top: 40px;
        width: 80%;
        left: 10%;
        font-size: 15px;
    }
    #dog3 {
        display: none;
        position: absolute;
        bottom: 30px;
        left: 30px;
        width: 30%;
        height: auto;
    }
    #dog2 {
        position: absolute;
        top: -48px;
        right: 10px;
        width: 120px;
    }
    #dog {
        display: none;
    }
    .hint {
        background-color: #DED5CA;
        position: absolute;
        bottom: 10px;
        right: 10px;
        height: 70px;
        width: 90%;
        left: 5%;
        border-radius: 20px;
    }
    .hint-wrap {
        position: relative;
        height: 100%;
        width: 100%;
        text-align: center;
        font-size: 22PX;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    #register-hint {
        display: none;
        background-color: #DED5CA;
        position: absolute;
        bottom: 10px;
        right: 5%;
        height: 70px;
        width: 90%;
        border-radius: 30px;
    }
    #registerbtn {
        width: 40%;
        top: 0px;
    }
    .passwordwrap {
        margin-top: 5vh;
        position: relative;
        display: flex;
        align-items: center;
        font-size: 20PX;
    }
    .submit {
        border-color: #6a635a;
        border-width: 2px;
        font-size: 20PX;
        margin-top: 35PX;
    }
    #register-title {
        font-size: 30PX;
    }
}