/* H5登录页面样式 */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    outline: none;
    box-sizing: border-box;
}

/* 确保HTML和Body元素全屏 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 防止页面滚动 */
}

/* 修改body-h5样式使其全屏铺满 */
.body-h5 {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 优化容器在不同屏幕尺寸下的显示 */
.login-container-h5 {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background-color: white;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 表单内容区域样式 */
.login-form-h5 {
    padding: 10px 20px 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 100%;
}

/* 媒体查询：小屏幕样式 */
@media (max-width: 767px) {
    .body-h5 {
        padding: 0 !important;
    }
    
    .login-container-h5 {
        border-radius: 0;
        box-shadow: none;
    }
    
    .login-form-h5 {
        padding: 10px 20px 20px;
        justify-content: flex-start;
    }
}

/* 媒体查询：大屏幕样式 */
@media (min-width: 768px) {
    .body-h5 {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }
    
    .login-container-h5 {
        max-width: 480px;
        max-height: 90vh;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .login-form-h5 {
        padding: 10px 30px 30px;
        justify-content: flex-start;
    }
}

/* 页面标题样式 */
.page-title-h5 {
    font-size: 24px;
    font-weight: bold;
    color: #5a96ff; /* 使用登录按钮的蓝色样式 */
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.logo-h5 {
    text-align: center;
    padding: 30px 0 20px;
}

.logo-h5 img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.login-form-h5 {
    padding: 0 20px 30px;
}

.login-tabs-h5 {
    width: 100%;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    border: 1px solid #ceffff;
    margin-bottom: 20px;
    display: flex;
}

.tab-h5,
.tab-active-h5 {
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 20px;
}

.tab-h5 {
    color: #666;
    background-color: #e6e9ed; /* 更深的灰色背景 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-h5:hover {
    background-color: #e8f0fe;
    color: #5a96ff;
}

.tab-active-h5 {
    background: linear-gradient(to left, #5a96ff, #50b4ff);
    color: white !important; /* 增加!important确保文字颜色优先显示 */
    font-weight: 600; /* 加粗文字增强可见性 */
    box-shadow: 0 2px 8px rgba(90, 150, 255, 0.3);
}

.input-group-h5 {
    width: 100%;
    border: 1px solid #5a96ff;
    display: inline-flex;
    align-items: center;
    height: 45px;
    padding: 3px 10px;
    margin-top: 15px;
    border-radius: 6px;
}

.input-group-h5 img {
    height: 22px;
    margin-right: 10px;
}

.input-group-h5 input {
    height: 35px;
    border: 0px;
    width: 100%;
    font-size: 16px;
}

.verify-code-h5 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verify-code-h5 input {
    flex: 1;
    padding-right: 0;
}

.verify-img-h5 {
    width: 100px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

.send-sms-btn-h5 {
    padding: 8px 12px;
    background: linear-gradient(to left, #5a96ff, #50b4ff);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.send-sms-btn-h5:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-tips-h5 {
    height: 24px;
    margin: 10px 0;
}

.error-tips-h5 span {
    color: red;
    font-size: 14px;
}

.login-button-h5 {
    margin-top: 20px;
    width: 100%;
    border: 0px;
    height: 45px;
    font-size: 18px;
    color: white;
    background: linear-gradient(to left, #5a96ff, #50b4ff);
    border-radius: 6px;
    cursor: pointer;
}

.login-footer-h5 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer-h5 a {
    color: #5a96ff;
    text-decoration: none;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .body-h5 {
        padding: 10px;
    }

    .login-container-h5 {
        max-width: 100%;
    }

    .logo-h5 img {
        width: 60px;
        height: 60px;
    }

    .input-group-h5 input {
        font-size: 15px;
    }

    .verify-img-h5 {
        width: 90px;
        height: 32px;
    }
}