/* 找回密码页面专用样式 */
.cb-auth-page {
    background-color: #f7f8fa;
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.cb-auth-container {
    width: 100%;
    max-width: 500px;
}

/* 进度条 */
.cb-step-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 40px;
}

.cb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cb-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #dcdfe6;
    color: #909399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cb-step-label {
    font-size: 14px;
    color: #909399;
    white-space: nowrap;
}

.cb-step.active .cb-step-number {
    border-color: #ff5722;
    color: #ff5722;
}

.cb-step.active .cb-step-label {
    color: #333;
    font-weight: 500;
}

.cb-step.completed .cb-step-number {
    background-color: #ff5722;
    border-color: #ff5722;
    color: #fff;
}

.cb-step-line {
    flex: 1;
    height: 2px;
    background-color: #dcdfe6;
    margin: 0 10px;
    margin-top: -24px;
}

/* 表单容器 */
.cb-auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.cb-step-content {
    display: none;
}

.cb-step-content.active {
    display: block;
}

.cb-form-group {
    margin-bottom: 20px;
}

.cb-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #606266;
}

.cb-form-label.required::before {
    content: '* ';
    color: #ff4949;
    margin-right: 4px;
}

.cb-form-input, .cb-form-select {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}

.cb-form-input:focus {
    border-color: #ff5722;
}

/* 组合输入框组件化优化 */
.cb-input-combined {
    display: flex !important;
    flex-wrap: nowrap !important; /* 强制不换行，保持一行 */
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.cb-form-select {
    width: 90px !important;
    border: none !important;
    background-color: #f5f7fa;
    flex-shrink: 0;
    height: 100% !important;
    padding: 0 10px !important;
    margin: 0 !important;
}

.cb-input-group {
    flex: 1;
    display: flex;
    align-items: center;
}

.cb-input-combined .cb-form-input {
    border: none !important;
    border-left: 1px solid #dcdfe6 !important;
    border-radius: 0 !important;
    height: 100% !important;
    margin: 0 !important;
}

/* 移动端兼容性 */
@media (max-width: 480px) {
    .cb-input-combined {
        /* 在极窄屏下也可以保持一行，或者切换为上下，但用户希望“组件化” */
        /* 如果要彻底解决兼容，建议保持一行但缩小 Select 宽度 */
    }
}

/* 带按钮的输入框 */
.cb-input-with-btn {
    display: flex;
    gap: 10px;
}

.cb-input-with-btn .cb-form-input {
    flex: 1;
}

/* 按钮样式 */
.cb-btn-primary {
    background-color: #ff5722;
    color: #fff;
    border: none;
    height: 44px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cb-btn-primary:hover {
    opacity: 0.9;
}

.cb-btn-secondary {
    background-color: #fff;
    color: #ff5722;
    border: 1px solid #ff5722;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.cb-btn-secondary:disabled {
    border-color: #dcdfe6;
    color: #909399;
    cursor: not-allowed;
}

.cb-full-width {
    width: 100%;
}

.cb-mt-20 {
    margin-top: 20px;
}

/* 成功消息 */
.cb-success-message {
    text-align: center;
    padding: 20px 0;
}

.cb-success-message i {
    font-size: 64px;
    color: #67c23a;
    height: 64px;
    width: 64px;
    margin-bottom: 20px;
}

.cb-success-message h3 {
    margin-bottom: 10px;
    color: #303133;
}

.cb-success-message p {
    color: #606266;
    margin-bottom: 30px;
}

/* 错误提示 */
.cb-auth-error {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fef0f0;
    color: #f56c6c;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}
