/* 适用于移动端 */
@media (max-width:768px) {
    .content {
        padding: 20px 20px 100px;
    }

    .module {
        margin-top: 20px;
    }

    .module-img {
        display: none;
    }

    .module-form {
        padding: 20px;
        width: 100%;
        background: #FFFFFF;
        border-radius: 12px;
    }

    .form-title {
        font-weight: bold;
        font-size: 24px;
        color: #2C2D3F;
    }

    .form-tips {
        margin-top: 20px;
        margin-bottom: 30px;
        font-size: 16px;
        color: #393D45;
    }

    .form-item {
        margin-bottom: 20px;
    }

    .form-input {
        width: 100%;
        height: 52px;
        border-radius: 4px;
        border: 1px solid #EDEDED;
    }

    .form-btn {
        display: inline-block;
        width: 100%;
        height: 52px;
        background: #2C6BFC;
        border-radius: 4px;
        font-size: 18px;
        color: #FFFFFF;
        text-align: center;
        line-height: 52px;
        cursor: pointer;
        user-select: none;
    }

    .form-line {
        margin-top: 40px;
        border: 1px solid #ECEEF3;
    }

    .form-link {
        margin-top: 33px;
        /* display: flex; */
    }

    .link-text {
        margin-bottom: 20px;
        display: block;
        font-size: 14px;
        color: #8A8E97;
        /* text-align: center; */
    }

    .link-line {
        border-left: 1px solid #ECEEF3;
    }
}

/* 除移动端的屏幕 */
@media (min-width:768px) {
    .content {
        background-image: url('../../img/login/login_bg.jpg');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .module {
        margin: 0 auto;
    }

    .form-tips-link {
        cursor: pointer;
        user-select: none;
    }

    .form-btn:hover {
        background: #265bd5;
    }

    .form-btn:active {
        background: #1d45a2;
    }
}

@media (min-width:768px) and (max-width:992px) {
    .module {
        max-width: 768px;
        height: 90vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .module-img img {
        width: 290px;
    }

    .module-form {
        padding: 45px 36px 64px;
        width: 446px;
        background: #FFFFFF;
        border-radius: 12px;
    }

    .form-title {
        font-weight: bold;
        font-size: 30px;
        color: #2C2D3F;
    }

    .form-tips {
        margin-top: 43px;
        margin-bottom: 34px;
        font-size: 18px;
        color: #393D45;
    }

    .form-item {
        margin-bottom: 30px;
    }

    .form-input {
        width: 100%;
        height: 52px;
        border-radius: 4px;
        border: 1px solid #EDEDED;
    }

    .form-btn {
        display: inline-block;
        width: 100%;
        height: 52px;
        background: #2C6BFC;
        border-radius: 4px;
        font-size: 18px;
        color: #FFFFFF;
        text-align: center;
        line-height: 52px;
        cursor: pointer;
        user-select: none;
    }

    .form-line {
        margin-top: 53px;
        border: 1px solid #ECEEF3;
    }

    .form-link {
        margin-top: 43px;
        display: flex;
        justify-content: space-between;
    }

    .link-text {
        position: relative;
        font-size: 12px;
        color: #8A8E97;
        text-align: center;
    }

    /* 为除最后一个外的所有a标签添加右侧竖线 */
    .form-link a:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -10px;
        /* 竖线贴在a标签的右边 */
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 18px;
        /* 调整竖线高度 */
        background-color: #ddd;
    }
}

@media (min-width:992px) and (max-width:1200px) {
    .module {
        max-width: 992px;
        height: 90vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .module-img img {
        width: 375px;
    }

    .module-form {
        padding: 45px 36px 64px;
        width: 446px;
        background: #FFFFFF;
        border-radius: 12px;
    }

    .form-title {
        font-weight: bold;
        font-size: 30px;
        color: #2C2D3F;
    }

    .form-tips {
        margin-top: 43px;
        margin-bottom: 34px;
        font-size: 18px;
        color: #393D45;
    }

    .form-item {
        margin-bottom: 30px;
    }

    .form-input {
        width: 100%;
        height: 52px;
        border-radius: 4px;
        border: 1px solid #EDEDED;
    }

    .form-btn {
        display: inline-block;
        width: 100%;
        height: 52px;
        background: #2C6BFC;
        border-radius: 4px;
        font-size: 18px;
        color: #FFFFFF;
        text-align: center;
        line-height: 52px;
        cursor: pointer;
        user-select: none;
    }

    .form-line {
        margin-top: 53px;
        border: 1px solid #ECEEF3;
    }

    .form-link {
        margin-top: 43px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .link-text {
        position: relative;
        font-size: 12px;
        color: #8A8E97;
        text-align: center;
    }

    /* 为除最后一个外的所有a标签添加右侧竖线 */
    .form-link a:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -10px;
        /* 竖线贴在a标签的右边 */
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 18px;
        /* 调整竖线高度 */
        background-color: #ddd;
    }
}

@media (min-width:1200px) {
    .module {
        max-width: 1200px;
        height: 90vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .module-img img {
        width: 454px;
    }

    .module-form {
        padding: 45px 36px 64px;
        width: 540px;
        background: #FFFFFF;
        border-radius: 12px;
    }

    .form-title {
        font-weight: bold;
        font-size: 30px;
        color: #2C2D3F;
    }

    .form-tips {
        margin-top: 43px;
        margin-bottom: 34px;
        font-size: 18px;
        color: #393D45;
    }

    .form-item {
        margin-bottom: 30px;
    }

    .form-input {
        width: 100%;
        height: 52px;
        border-radius: 4px;
        border: 1px solid #EDEDED;
    }

    .form-btn {
        display: inline-block;
        width: 100%;
        height: 52px;
        background: #2C6BFC;
        border-radius: 4px;
        font-size: 18px;
        color: #FFFFFF;
        text-align: center;
        line-height: 52px;
        cursor: pointer;
        user-select: none;
    }

    .form-line {
        margin-top: 53px;
        border: 1px solid #ECEEF3;
    }

    .form-link {
        margin-top: 43px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .link-text {
        position: relative;
        font-size: 14px;
        color: #8A8E97;
        text-align: center;
        text-decoration: none;
    }

    /* 为除最后一个外的所有a标签添加右侧竖线 */
    .form-link a:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -20px;
        /* 竖线贴在a标签的右边 */
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 24px;
        /* 调整竖线高度 */
        background-color: #ddd;
    }
}

body {
    background: #F6F7FB;
}

/* --- 新增：表单验证样式 --- */
.form-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    /* 默认隐藏错误信息 */
}

.form-input.error {
    border-color: #ff4d4f !important;
    /* 错误时显示红色边框 */
}

.form-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.form-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}