.login{
    padding: 80px 0;
}
.login-container{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 30px;
}
h3{
    font-weight: bold;
    font-size: 50px;
    color: rgba(0,0,0,0.8);
    line-height: 70px;
}

.line{
    width: 80%;
    height: 10px;
    background: linear-gradient(
        to right,
        #005941 50%,
        #EE5A28 50%
    );
}

.form{
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    width: 45%;
}
.form-item{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    position: relative;
}
.form-item label{
    width: 100%;
    font-weight: bold;
    font-size: 26px;
    color: rgba(0,0,0,0.8);
    line-height: 40px;
}
.form-item input{
    width: 100%;
    padding: 15px;
    border: 1px solid #A7B0B5;
    background: #FFFFFF;
}
.form-item input:focus{
    outline: none;
}
.form-item input::placeholder{
    color: #A7B0B5;
}

.forget{
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
.forget a{
    text-decoration: underline !important;
    color: #005941;
    font-size: 17px;
    font-weight: bold;
}

.form-btn .more .button__bg{
    border-radius: 0;
}
.form-btn .more span{
    padding: 1.5rem 3rem;
    font-size: 16px;
    font-weight: bold;
}

/* 註冊 */
.code-item a{
    position: absolute;
    right: 5%;
    bottom: 15%;
}
.code-item a{
    color: #EE5A28;
}
.code-item a:hover{
    color: #005941;
}

.sms-box a span{
    color: #333; display: inline-block; margin-right: 5px;
}


.agree{
    display: flex;
    align-items: center;
    column-gap: 5px;
}
.agree input[type="checkbox"] {
    margin: 0;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    outline: none;
    border-radius: 2px;
    background: #FFFFFF;
    position: relative;
    cursor: pointer;
}

.agree input[type="checkbox"]:checked {
    background-color: #EE5A28;
    border: none;
}

/* 创建勾选标记 */
.agree input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

/* 当复选框被选中时显示勾选标记，并设置颜色 */
.agree input[type="checkbox"]:checked::after {
    display: block;
    border-color: #ffffff; /* 勾选标记的颜色 */
}

/* 确保标签文本与复选框对齐 */
.agree label {
    margin: 0;
    cursor: pointer;
}


@media screen and (max-width: 767px) {
    .form {
        width: 85%;
    }

    h3 {
        font-size: 34px;
        line-height: 50px;
    }

    .form-item label {
        font-size: 20px;
        line-height: 35px;
    }

    .login {
        padding: 45px 0; padding-top: 35px;
    }

    .form-item {
        row-gap: 5px;
    }

}