/* * Custom Register Page Styles
 * 继承 Login Page 的简约高级风格
 */

/* 1. 全局背景：保持与登录页一致的浅灰色 */
body.page-template-page-register {
    background-color: #ededed !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* 确保字体现代 */
    color: #333;
}

/* 2. 居中容器 wrapper */
.custom-login-wrapper {
    background-color: #ededed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* 垂直居中 */
    padding: 60px 20px; /* 上下留白 */
    box-sizing: border-box;
}

/* 3. 注册主体卡片：更宽一些，但质感与登录卡片一致 */
.register-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 680px; /* 比登录页宽，因为有两列布局 */
    padding: 50px 60px; /* 内部留白加大，显得透气 */
    border-radius: 8px; /* 细腻圆角 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* 更高级的悬浮阴影 */
    box-sizing: border-box;
}

/* 标题 */
.login-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    color: #111;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* 4. 输入框样式优化 */
.login-field {
    margin-bottom: 24px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px; /* 标签字号稍微调小，更精致 */
    color: #555;
    font-weight: 600;
    text-transform: uppercase; /* 标签全大写，增加设计感 */
    letter-spacing: 0.5px;
}

.login-input {
    width: 100%;
    padding: 14px 16px; /* 高度适中 */
    border: 1px solid #e1e1e1; /* 极细边框 */
    border-radius: 4px;
    font-size: 15px;
    background: #fdfdfd;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.login-input:focus {
    border-color: #333; /* 聚焦变黑 */
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05); /* 聚焦时的微弱光晕 */
}

/* 两列布局优化：让 First Name/Last Name 并排 */
.form-row.two-col {
    display: flex;
    gap: 20px; /* 列间距 */
}
.form-row.two-col .login-field {
    flex: 1; /* 均分宽度 */
    width: 100%; /* 防止 flex 压缩 */
}

/* 5. 条款框 (Terms Box) 美化 */
.terms-box {
    background: #f8f8f8;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 6px;
}

.terms-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.terms-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 100px; /* 限制高度 */
    overflow-y: auto; /* 超出滚动 */
    padding-right: 10px; /* 防止滚动条遮挡文字 */
}

/* 自定义滚动条样式 (Chrome/Safari) */
.terms-content::-webkit-scrollbar {
    width: 4px;
}
.terms-content::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 2px;
}

.terms-checkbox {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    user-select: none;
}
.terms-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #000; /* 选中时是黑色 */
}

/* 6. 验证码区域优化 */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.captcha-box img {
    height: 44px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* 调整验证码输入框，去掉边框让它融入 box */
.captcha-box .login-input {
    border: 1px solid #ddd;
    background: #fff;
    height: 44px;
    margin: 0;
    flex: 1; /* 填满剩余空间 */
}

/* 7. 注册按钮：全黑设计 */
.login-submit {
    margin-top: 30px;
}

.btn-signin {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-signin:hover {
    background-color: #333;
    transform: translateY(-1px); /* 轻微上浮 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 8. 底部链接 */
.login-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.register-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.register-link:hover {
    border-bottom: 1px solid #000;
}

/* 9. 错误与成功提示美化 */
.register-errors {
    background: #fff5f5;
    border-left: 4px solid #e53e3e; /* 左侧红条 */
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.1);
}
.error-msg {
    color: #c53030;
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
}
/* 给错误信息加一个小图标 */
.error-msg::before {
    content: '!';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #c53030;
    color: #fff;
    text-align: center;
    line-height: 16px;
    border-radius: 50%;
    font-size: 11px;
    margin-right: 8px;
    font-weight: bold;
}

.register-success {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    padding: 30px;
    text-align: center;
    color: #2f855a;
    font-size: 16px;
    border-radius: 4px;
}

/* 10. 响应式适配 */
/* 外层容器：保持与输入框一致的间距 */
.interests-wrapper {
    margin-bottom: 25px;
    width: 100%;
}

/* 标题 Label */
.interests-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600; /* 加粗，更有质感 */
    color: #555;
    text-transform: uppercase;
}

/* 红色必填星号 */
.interests-label .req {
    color: #555; /* 与错误提示红条一致 */
    margin: 0 4px;
}

/* 小字说明 */
.interests-label .note {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* 勾选框的滚动容器 */
.interests-container {
    background-color: #f9f9f9; /* 极浅的灰色背景，区别于白色卡片 */
    border: 1px solid #e0e0e0; /* 细边框 */
    border-radius: 4px;        /* 圆角 */
    padding: 15px 20px;
    max-height: 220px;         /* 限制高度 */
    overflow-y: auto;          /* 内容多了自动出现滚动条 */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); /* 轻微内阴影增加层次感 */
}

/* 单个选项行 */
.interest-item {
    display: flex;       /* 弹性布局，让框和字对齐 */
    align-items: center; /* 垂直居中 */
    margin-bottom: 10px;
    cursor: pointer;     /* 鼠标变手型 */
    transition: all 0.2s ease;
}

.interest-item:last-child {
    margin-bottom: 0;
}

.interest-item:hover {
    opacity: 0.8;
}

/* 复选框本体样式微调 */
.interest-item input[type="checkbox"] {
    /* 清除浏览器默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* 自己画一个框 */
    width: 18px;
    height: 18px;
    border: 1px solid #000000; /* 这里设置黑色边框 */
    border-radius: 2px;        /*稍微一点圆角，显得不那么生硬 */
    background-color: #ffffff; /* 默认白色背景 */
    cursor: pointer;
    vertical-align: middle;
    margin: 0 10px 0 0;        /* 保持间距 */
    position: relative;        /* 为了里面那个“勾”定位 */
    transition: all 0.2s ease; /* 增加一点点击动画 */
}

/* 当被选中(Checked)时的样式 */
.interest-item input[type="checkbox"]:checked {
    background-color: #000000; /* 选中变黑 */
    border-color: #000000;
}

/* 手画那个白色的“勾” (利用伪元素) */
.interest-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;   /* 定位调整 */
    top: 2px;
    width: 4px;  /* 勾的大小 */
    height: 8px;
    border: solid white; /* 白色的勾 */
    border-width: 0 2px 2px 0; /* 只显示右边和下边，形成 L 型 */
    transform: rotate(45deg);  /* 旋转变成对号 */
}

/* 选项文字 */
.interest-item span {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
}

/* 11. 上传文件样式 */
.upload-wrapper {
    margin-bottom: 24px;
}

.upload-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-label .note {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    text-transform: none;
    margin-left: 5px;
}

/* 拖拽区域主体 */
.upload-drop-zone {
    width: 100%;
    height: 120px; /* 高度适中 */
    border: 1px dashed #ccc; /* 虚线边框表示可拖拽 */
    border-radius: 4px;
    background-color: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 鼠标悬停或拖拽文件进入时的高亮状态 */
.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: #333; /* 变黑 */
    background-color: #f5f5f5;
}

.upload-content {
    text-align: center;
    pointer-events: none; /* 让点击事件穿透到父级 div */
}

.upload-text {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* 文件名显示样式 (JS控制显示) */
.file-name-display {
    font-size: 14px;
    color: #000;
    font-weight: 600;
    margin-top: 5px;
    display: none; /* 默认隐藏 */
    word-break: break-all;
}

/* 错误提示样式 (JS控制) */
.upload-error {
    color: #c53030;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* 12. 进度条样式 */
.progress-container {
    margin-top: 15px;
    width: 100%;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #000; /* Seeposh 风格黑色 */
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 3px;
}

.progress-text {
    font-size: 12px;
    color: #666;
    text-align: right;
    font-family: monospace;
}

/* 上传中禁止重复点击 */
.upload-drop-zone.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9f9f9;
}

.remove-file-link {
    font-size: 12px;
    color: #dc3545; /* 警示红 */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-file-link:hover {
    color: #a71d2a; /* 深红 */
    text-decoration: underline;
}
/* 13. 响应式适配 */
@media (max-width: 600px) {
    .register-container {
        padding: 30px 20px;
    }
    .form-row.two-col {
        flex-direction: column;
        gap: 0;
    }
    .login-title {
        font-size: 24px;
    }
    .captcha-box {
        flex-wrap: wrap;
    }
    .captcha-box .login-input {
        width: 100%;
        flex: none;
    }
}