/* 用户登录/注册页面公共样式 */

/* box-bottom: 宽高铺满整个屏幕，使用背景图 */
.box-bottom {
    width: 100vw;
    height: 100vh;
    background-image: url('/static/edc_index/szbme/images/reg-bg-bottom-v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* box-center: 放在box-bottom中间，上下左右间距相等，适应各种尺寸屏幕 */
.box-center {
    position: absolute;
    top: 55%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: calc(100% - 120px);
    height: calc(100% - 120px);
    max-width: 1400px;
    max-height: 900px;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    box-sizing: border-box;
    align-content: flex-start;
}

/* box-top-left: 宽度为box-center的70%，高度为box-center的90%，背景图 */
.box-top-left {
    width: 62%;
    height: 82%;
    background-image: url('/static/edc_index/szbme/images/reg-bg-top-v3.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* box-top-right: 宽度为box-center的22%，高度为box-center的90%，内容保持不变 */
.box-top-right {
    width: 28%;
    height: 82%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* box-top-right内部的login-container */
.box-top-right .login-container {
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

/* box-top-bottom: 高度为box-center的10%，宽度100%，背景透明 */
.box-top-bottom {
    width: 100%;
    height: 10%;
    background: transparent !important;
    flex-shrink: 0;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* 去除box-top-bottom内部所有元素的样式 */
.box-top-bottom * {
    background: transparent !important;
    background-color: transparent !important;
    color: #666 !important;
    font-size: 14px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

/* box-top-left-top: 宽度100%，高度12%，点击跳转首页 */
.box-top-left-top {
    width: 100%;
    height: 15%;
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* box-top-left-top 内的图片 */
.box-top-left-top img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* box-top-left-top 内的文字 */
.box-top-left-top span {
    color: white;
    font-size: 24px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    letter-spacing: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .box-center {
        width: calc(100% - 60px);
        height: calc(100% - 60px);
    }
}

@media (max-width: 768px) {
    .box-center {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        flex-direction: column;
    }
    
    .box-top-left,
    .box-top-right {
        width: 100% !important;
        height: auto !important;
    }
    
    .box-top-left {
        height: 50vh;
    }
    
    .box-top-right {
        height: auto;
        max-height: 50vh;
    }
    
    .box-top-bottom {
        height: 20px;
    }
}

/* auth-container在box-top-right内部时，不需要额外样式 */
.box-top-right .auth-container {
    width: 100%;
    height: 100%;
    background: transparent;
    /* padding: 0; */
    border-radius: 0;
    box-shadow: none;
}

.auth-title {
    text-align: center;
    color: #013b90;
    font-size: 24px;
    margin-bottom: 30px;
}

/* 表单组 */
.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-group-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-group-inline > div {
    position: relative;
    flex: 1;
}

/* 输入框图标 */
.form-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    z-index: 1;
}

/* 输入框样式 */
.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    color: #333;
}

.form-input::placeholder {
    color: #999;
    opacity: 1;
}

.form-input::-webkit-input-placeholder {
    color: #999;
}

.form-input::-moz-placeholder {
    color: #999;
    opacity: 1;
}

.form-input:-ms-input-placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
    border-color: #013b90;
}

/* 验证码图片 */
.verify-img {
    cursor: pointer;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 发送验证码按钮 */
.btn-send-code {
    transition: all 0.3s;
}

.btn-send-code:hover {
    background: #dda0dd !important;
    box-shadow: 0 2px 8px rgba(221, 160, 221, 0.3);
}

.btn-send-code:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 复选框标签 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-label span {
    color: #666;
    font-size: 14px;
}

.checkbox-label a {
    color: #013b90;
    text-decoration: none;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #013b90;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #023a8f !important;
    box-shadow: 0 2px 8px rgba(1, 59, 144, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* 链接文字 */
.auth-link-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.auth-link-text a {
    color: #013b90;
    text-decoration: none;
}

/* 消息提示 */
#errorMsg, #successMsg {
    display: none;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s;
}

#errorMsg {
    background: #fee;
    color: #c33;
}

#successMsg {
    background: #efe;
    color: #3c3;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 按钮抖动动画 */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* 错误弹窗样式已统一使用 user-center.css，此处注释保留便于后期恢复
.error-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.error-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.error-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.error-modal-close:hover {
    color: #333;
}

.error-modal-body {
    padding: 20px;
    color: #666;
    text-align: center;
}

.error-modal-footer {
    padding: 15px 20px;
    text-align: right;
}

.error-modal-btn {
    padding: 8px 20px;
    background: #19345c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.error-modal-btn:hover {
    background: #1a4a6e;
}
*/
.error-modal-header h5 {
    margin: 0;
}
.error-modal-body p {
    font-size: 12px;
}
