/* ===================================================
   register.css  v2.1  —  现代极简注册页（全字段两列并排）
   主色：深海蓝 #0f172a / 天空蓝 #0ea5e9
   背景：冷灰 #f1f5f9
   =================================================== */

/* ---------- 页面全屏容器 ---------- */
.register-page-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* ---------- 主卡片 ---------- */
.register-card {
    width: 1040px;
    min-height: 580px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15,23,42,0.22);
    display: flex;
    overflow: hidden;
}

/* ---------- 左侧品牌区 ---------- */
.register-brand {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e40af 60%, #0ea5e9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.register-brand::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: -60px;
    right: -60px;
}

.register-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    bottom: -50px;
    left: -50px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(14,165,233,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(14,165,233,0.35);
}

.brand-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: #7dd3fc;
    stroke-width: 1.5;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    text-align: center;
}

.brand-features {
    margin-top: 36px;
    width: 100%;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.brand-feature-item:last-child {
    border-bottom: none;
}

.brand-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0ea5e9;
    flex-shrink: 0;
}

/* ---------- 右侧表单区 ---------- */
.register-form-area {
    flex: 1;
    padding: 40px 48px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ---------- 顶部标题行 ---------- */
.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.register-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.register-title span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 4px;
}

.tologin {
    font-size: 14px;
    color: #0ea5e9;
    text-decoration: none;
    padding: 8px 18px;
    border: 1.5px solid #0ea5e9;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tologin:hover {
    background: #0ea5e9;
    color: #fff;
}

/* ---------- 分区标题 ---------- */
.form-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 20px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

/* ---------- 两列网格布局 ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .fc-full {
    grid-column: 1 / -1;
}

/* 全宽字段（联系电话/推荐人ID）标题与两列字段对齐 */
.form-grid .fc-full .fcl_title {
    margin-top: 0;
    padding-left: 0;
}

/* ---------- 单个字段 ---------- */
.fc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.fcl_title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: visible;
}

.fcl_title .optional-tag {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

.light_title {
    color: #64748b;
}

.fcl_container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- 输入框 ---------- */
.fcl_container input {
    width: 100%;
    height: 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 0 14px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.fcl_container input::placeholder {
    color: #cbd5e1;
    font-size: 13px;
}

.fcl_container input:focus {
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

/* ---------- 错误提示 ---------- */
.errmsg {
    font-size: 12px;
    color: #ef4444;
    display: none;
    padding-left: 2px;
}

.errtips .errmsg {
    display: block;
}

/* ---------- 注册按钮 ---------- */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #0369a1, #0ea5e9);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    margin-top: 24px;
    border: none;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
    user-select: none;
}

.button:hover {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(14,165,233,0.45);
}

.button:active {
    transform: scale(0.98);
}

/* ---------- 验证摘要 ---------- */
.font-red {
    margin-top: 12px;
    font-size: 13px;
}

.font-red ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.font-red li {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 13px;
}

/* ---------- 旧布局兼容隐藏（保留以防回退） ---------- */
.register-container-wrapper {
    display: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .register-card {
        width: 100%;
        flex-direction: column;
    }
    .register-brand {
        width: 100%;
        padding: 32px 24px;
        min-height: auto;
    }
    .register-form-area {
        padding: 28px 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}
