
/* 外层容器：控制长方形背景块 */
.register-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;        /* 只水平居中 */
    /* padding: 40px 15px; */   /* 上下撑开 */
    height: 100%;          /* 关键 */
}


/* 注册卡片：白色背景 + 圆角 + 阴影 */
.register-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.08);
    overflow: hidden;
}

/* 头部区域：蓝紫渐变背景 */
.register-header {
    background: linear-gradient(135deg, #0947ba 0%, #0947ba 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.register-header .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 36px;
    backdrop-filter: blur(5px);
}

.register-header h2 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 24px;
}

.register-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* 表单主体区域 */
.card-body {
    padding: 30px;
}

/* 表单组间距 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* 输入框容器：用于控制图标位置 */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* 输入框基础样式 */
.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    outline: none;
}

.form-control::placeholder {
    color: #c5c9d1;
}

/* 输入框聚焦状态：主色高亮 */
.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.15);
}

/* 输入框前的图标 */
.input-icon {
    position: absolute;
    left: 16px;
    color: #a8b1c3;
    font-size: 16px;
    z-index: 10;
}

/* 验证码区域：输入框 + 按钮 横向排列 */
.verify-row {
    display: flex;
    gap: 12px;
}

.verify-row .form-control {
    flex: 1;
}

/* 获取验证码按钮：浅蓝色调 */
.btn-get-code {
    width: 120px;
    height: 48px;
    background-color: #3b82f6;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 13px;
}

.btn-get-code:hover {
    background-color: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-get-code:disabled {
    background-color: #3b82f6;
    color: #999;
    border-color: #3b82f6;
    cursor: not-allowed;
}

/* 服务条款区域 */
.agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.agreement input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 8px;
    accent-color: #3b82f6;
}

.agreement label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.agreement a {
    color: #3b82f6;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 提交按钮：主色调渐变 */
.btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #053ca2 0%, #053ca2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 115, 255, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 错误提示样式 */
.error-text {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.has-error .form-control {
    border-color: #ff4d4f;
}

.has-error .input-icon {
    color: #ff4d4f;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .register-wrapper {
        padding: 15px;
    }

    .register-card {
        border-radius: 15px;
    }

    .register-header {
        padding: 30px 20px;
    }

    .card-body {
        padding: 30px 20px;
    }

    .verify-row {
        flex-direction: column;
    }

    .btn-get-code {
        width: 100%;
    }
}


/* 1. 父容器：启用 Flex 布局，让左右列等高 */
.register-layout {
    display: flex;
    align-items: stretch;   /* ✅ 左右等高 */
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.08);
    overflow: hidden;
}

/* 2. 左侧区域：自适应高度 + 背景图/渐变 */
.register-left {
    flex: 1;              /* 占 1 份宽度（右侧也用 flex:1 可实现 50:50） */
    /**background: #0947ba;*/  /* 示例：蓝色背景（替换为你需要的图片或渐变） */
    background: linear-gradient(135deg, #3472e4 0%, #0b4fcf 50%, #053ca2 100%);
    display: flex;        /* 垂直+水平居中内容 */
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px;
    text-align: center;
}

/* 左侧图片区 */
/* .register-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0947ba 0%, #053ca2 100%);
    color: #fff;
    padding: 40px;
    text-align: center;
} */

.left-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.left-content p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* 右侧区域：保持原有表单样式，高度由内容决定 */
.register-right {
    flex: 1;              /* 占 1 份宽度（与左侧 1:1 分配） */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 可选：垂直居中表单 */
    background: #f8fafc;
    align-items: stretch;
}

/* 响应式：小屏幕堆叠为上下布局 */
@media (max-width: 992px) {
    .register-layout {
        flex-direction: column; /* 小屏幕时上下排列 */
    }
    .register-left, .register-right {
        flex: none; /* 取消弹性，宽度 100% */
        width: 100%;
    }
}