﻿.register-container {
    width: 720px;
    margin: 30px auto 80px;
    background-color: #ffffff;
    padding: 48px 56px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ebf0;
}

.register-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 42px;
    color: #1d2129;
    position: relative;
}
    /* 标题分割线，企业官网常用装饰 */
    .register-title::after {
        content: "";
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #1677ff, #409eff);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -14px;
        border-radius: 2px;
    }

.reg-item {
    display: flex;
    align-items: center;
    margin-bottom: 26px;
    position: relative;
}

.reg-label {
    width: 130px;
    text-align: right;
    padding-right: 18px;
    font-size: 15px;
    color: #4e5969;
    flex-shrink: 0;
}

/* 必填标识 */
.required {
    color: #f53f3f;
    margin-left: 4px;
    font-weight: 500;
}

.reg-control-wrap {
    display: flex;
    align-items: center;
    width: 340px;
    flex-shrink: 0;
}

.reg-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.24s ease;
    background: #fff;
}

    .reg-control::placeholder {
        color: #9ca3af;
    }

    .reg-control:focus {
        outline: none;
        border-color: #1677ff;
        box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
    }

    .reg-control:hover {
        border-color: #a9b2c3;
    }

/* 下拉选择框统一美化 */
#sel_roletype {
    width: 160px;
    height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
    color: #303643;
    transition: all 0.24s ease;
}

    #sel_roletype:focus {
        outline: none;
        border-color: #1677ff;
        box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
    }

/* 图形验证码行布局 */
.verify-wrap {
    display: flex;
    gap: 12px;
    width: 340px;
    align-items: center;
}

#regImageCode {
    height: 44px;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    cursor: pointer;
    transition: opacity 0.2s;
}

    #regImageCode:hover {
        opacity: 0.85;
    }

/* 错误提示 */
.error-msg {
    margin-left: 14px;
    color: #f53f3f;
    font-size: 13px;
    height: 18px;
    line-height: 18px;
    min-width: 220px;
}


.term-group {
    display: flex;
    align-items: center;
    padding-left: 110px;
    margin: 12px 0 36px;
    gap: 8px;
    /* 禁止换行，单行展示 */
    flex-wrap: nowrap;
    /* 占满可用宽度，给错误提示留出位置 */
    width: 100%;
}

.term-text {
    font-size: 14px;
    color: #667085;
    /* 文本不挤压换行 */
    white-space: nowrap;
    flex-shrink: 0;
}

#chk_term {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

#error_term {
    flex-shrink: 0;
    margin-left: 10px;
}

/* 提交按钮 企业主色稳重样式 */
.submit-btn {
    width: 340px;
    height: 48px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-left: 110px;
    transition: all 0.24s ease;
}

    .submit-btn:hover {
        background-color: #0958d9;
    }

    .submit-btn:active {
        background-color: #0647b2;
    }

    .submit-btn:disabled {
        background-color: #8cbfff;
        cursor: not-allowed;
    }

/* ====================== 移动端适配【新增核心代码】====================== */
@media screen and (max-width: 768px) {
    .register-container {
        width: auto;
        margin: 16px 12px 40px;
        padding: 24px 16px;
    }

    .register-title {
        font-size: 22px;
        margin-bottom: 32px;
    }

    /* 表单行：水平布局改成垂直上下排列 */
    .reg-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .reg-label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .reg-control-wrap,
    .verify-wrap {
        width: 100%;
    }

    #sel_roletype {
        width: 100%;
    }

    .error-msg {
        margin-left: 0;
        margin-top: 6px;
        min-width: unset;
    }

    /* 协议区域取消左边缩进 */
    .term-group {
        padding-left: 0;
        flex-wrap: wrap;
    }

    .term-text {
        white-space: normal;
    }

    /* 按钮取消左外边距，宽度100% */
    .submit-btn {
        width: 100%;
        margin-left: 0;
    }
}