﻿











/* ============================================
   登录页面专用样式修复
   ============================================ */

/* 修复登录框居中 */
.page-right.shadow-lg.pb-5 {
    padding: 40px 35px !important;
    border-radius: 15px !important;
    margin-top: 20px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-top: 3px solid #00a65a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.page-right h5.mt-4.text-center {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px !important;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* 登录表单容器居中 */
#form_login {
    max-width: 400px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* 输入框统一样式 - 左右全圆角 */
#form_login .form-control.rounded-right,
#form_login .input-group .form-control {
    border-radius: 50px !important;
    height: 48px;
    padding-left: 20px;
    font-size: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#form_login .form-control.rounded-right:focus {
    border-color: #00a65a;
    box-shadow: 0 0 0 3px rgba(0, 166, 90, 0.15);
}

#form_login .input-group-text.rounded-left {
    border-radius: 50px 50px 50px 50px !important;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 0 15px;
    min-width: 100px;
    justify-content: center;
}

#form_login .input-group-text.rounded-left i {
    color: #00a65a;
    font-size: 16px;
}

/* 输入框focus时标签样式 */
#form_login .input-group:focus-within .input-group-text.rounded-left {
    border-color: #00a65a;
}

/* 登录按钮 - 胶囊样式 */
#form_login .btn-danger.rounded-pill {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    transition: all 0.3s ease;
}

#form_login .btn-danger.rounded-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

/* 社交登录按钮 */
#form_login .social-login {
    padding: 20px 0;
}

#form_login .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 8px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

#form_login .social-btn.qq {
    background: linear-gradient(135deg, #12B7F5 0%, #1a8fc7 100%);
}

#form_login .social-btn.wx {
    background: linear-gradient(135deg, #07C160 0%, #06ae56 100%);
}

#form_login .social-btn.douyin {
    background: linear-gradient(135deg, #FF1A1A 0%, #E60000 100%);
}

#form_login .social-btn.alipay {
    background: linear-gradient(135deg, #1677FF 0%, #E60000 100%);
}

#form_login .social-btn.dingtalk {
    background: linear-gradient(135deg, #FF1A1A 0%, #06ae56 100%);
}

#form_login .social-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

#form_login .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* 错误提示 */
#error_tips {
    background: #fef2f2;
    border-radius: 25px;
    padding: 10px 20px;
    margin-bottom: 20px;
    border: 1px solid #fed7d7;
    color: #dc3545;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .offset-md-3.col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .page-right.shadow-lg.pb-5 {
        padding: 30px 25px !important;
    }
    
    #form_login .input-group-prepend {
        min-width: 100px;
    }
    
    #form_login .input-group-text.btn-rounded span.small {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .offset-md-3.col-md-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .page-right.shadow-lg.pb-5 {
        padding: 25px 20px !important;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    .page-right h5.mt-4.text-center {
        font-size: 20px;
        margin-bottom: 20px !important;
    }
    
    #form_login {
        padding: 0 !important;
    }
    
    #form_login .form-control.btn-rounded {
        height: 42px;
        font-size: 14px;
    }
    
    #form_login .btn-rounded.btn-danger {
        height: 45px;
        font-size: 15px;
    }
    
    #form_login .input-group-text.btn-rounded {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 576px) {
    .offset-md-3.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    .page-right.shadow-lg.pb-5 {
        padding: 20px 15px !important;
        margin-top: 10px;
        margin-bottom: 15px;
        border-radius: 10px !important;
    }
    
    .page-right h5.mt-4.text-center {
        font-size: 18px;
        margin-bottom: 15px !important;
    }
    
    #error_tips {
        font-size: 13px;
        padding: 10px 15px;
        min-height: 40px;
    }
    
    #form_login .input-group-prepend {
        min-width: 90px;
    }
    
    #form_login .input-group-text.btn-rounded {
        font-size: 12px;
        padding: 0 10px;
    }
    
    #form_login .input-group-text.btn-rounded .fa {
        font-size: 12px;
    }
    
    #form_login #show_verify .col-md-8,
    #form_login #show_verify .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #form_login .login_social,
    #form_login .p-2.bg-success.text-white.rounded-circle {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }
    
    .mr-4, .ml-4 {
        margin-right: 15px !important;
        margin-left: 15px !important;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .page-right.shadow-lg.pb-5 {
        background: #2c3e50;
        border-color: #34495e;
        border-top-color: #00a65a;
    }
    
    .page-right h5.mt-4.text-center {
        color: #ecf0f1;
        border-bottom-color: #4a6572;
    }
    
    #error_tips {
        background: #7b1c1c;
        border-color: #991b1b;
        color: #fca5a5;
    }
    
    #form_login .input-group-text.btn-rounded {
        background: #34495e;
        border-color: #4a6572;
        color: #bdc3c7;
    }
    
    #form_login .form-control.btn-rounded {
        background: #2c3e50;
        border-color: #4a6572;
        color: #ecf0f1;
    }
    
    #form_login .form-control.btn-rounded:focus {
        background: #3a506b;
        border-color: #00a65a;
    }
    
    #form_login #show_verify {
        background: #34495e;
    }
    
    #form_login .form-check-inline {
        color: #bdc3c7;
    }
    
    #form_login a {
        color: #66b3ff;
    }
    
    #form_login a:hover {
        color: #3399ff;
    }
    
    #form_login .w-100.my-3.text-center:before {
        background: #4a6572;
    }
    
    #form_login .w-100.my-3.text-center span {
        background: #2c3e50;
        color: #bdc3c7;
    }
}

/* 打印样式 */
@media print {
    .page-right.shadow-lg.pb-5 {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 20px !important;
    }
    
    #form_login .login_social,
    #form_login .p-2.bg-success.text-white.rounded-circle {
        display: none !important;
    }
    
    #form_login .w-100.my-3.text-center {
        display: none !important;
    }
}

/* ============================================
   用户中心统一样式 - 包括注册、重置密码等页面
   ============================================ */

/* 步骤指示器容器 */
.w-100.mb-5.text-muted {
    position: relative;
    margin-bottom: 40px !important;
    padding: 0;
    background: none !important;
    height: 60px;
}

/* 步骤线背景 */
.w-100.mb-5.text-muted:before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    z-index: 1;
    border-radius: 2px;
}

/* 第一步注册页面 - 第1步激活 */
.step-1 .w-100.mb-5.text-muted:before {
    background: linear-gradient(90deg, 
        #dc3545 0%, 
        #dc3545 33.33%, 
        #dee2e6 33.33%, 
        #dee2e6 100%);
}

/* 第二步注册页面 - 第2步激活 */
.step-2 .w-100.mb-5.text-muted:before {
    background: linear-gradient(90deg, 
        #dc3545 0%, 
        #dc3545 66.66%, 
        #dee2e6 66.66%, 
        #dee2e6 100%);
}

/* 步骤容器 */
.w-100.mb-5.text-muted .row {
    position: relative;
    z-index: 2;
    height: 100%;
    align-items: center;
}

/* 每个步骤列 */
.w-100.mb-5.text-muted .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* 步骤圆圈 */
.w-100.mb-5.text-muted .col-md-4 span .rounded-circle {
    width: 30px;
    height: 30px;
    line-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: 600;
    border: 2px solid;
    font-size: 14px;
    background: #fff;
    z-index: 3;
}

/* 第一步页面样式 */
.step-1 .w-100.mb-5.text-muted .col-md-4:first-child span .rounded-circle {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.step-1 .w-100.mb-5.text-muted .col-md-4:not(:first-child) span .rounded-circle {
    background: #fff !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}

/* 第二步页面样式 */
.step-2 .w-100.mb-5.text-muted .col-md-4:first-child span .rounded-circle {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.step-2 .w-100.mb-5.text-muted .col-md-4:nth-child(2) span .rounded-circle {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.step-2 .w-100.mb-5.text-muted .col-md-4:last-child span .rounded-circle {
    background: #fff !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}

/* 步骤文本容器 */
.w-100.mb-5.text-muted .col-md-4 span {
    background: transparent !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none !important;
    border: none !important;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* 激活步骤文本颜色 */
.w-100.mb-5.text-muted .col-md-4 span.active-step {
    color: #dc3545 !important;
    font-weight: 600;
}

/* ============================================
   表单通用样式 - 注册、重置密码、登录等页面通用
   ============================================ */

/* 表单容器样式 */
.page-right {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* 标题样式 */
.page-right h5.text-center {
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 输入框圆角样式 */
.btn-rounded {
    border-radius: 25px !important;
}

.input-group-text.btn-rounded {
    border-radius: 25px 0 0 25px !important;
    background: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 500;
    color: #495057;
    min-width: 120px;
}

.form-control.btn-rounded {
    border-radius: 0 25px 25px 0 !important;
    border-left: none;
}

/* 表单内边距调整 */
.page-right .px-3.px-md-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

@media (min-width: 768px) {
    .page-right .px-3.px-md-4 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* 按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 错误提示样式 */
#error_tips {
    min-height: 30px;
    padding: 5px 0;
}

/* 密码提示文字 */
.text-muted.small {
    font-size: 13px;
    color: #6c757d;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .w-100.mb-5.text-muted {
        height: auto;
        margin-bottom: 30px !important;
    }
    
    .w-100.mb-5.text-muted:before {
        display: none;
    }
    
    .w-100.mb-5.text-muted .row {
        flex-direction: column;
        gap: 20px;
    }
    
    .w-100.mb-5.text-muted .col-md-4 {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .w-100.mb-5.text-muted .col-md-4 span {
        flex-direction: row;
        align-items: center;
    }
    
    .w-100.mb-5.text-muted .col-md-4 span .rounded-circle {
        margin-bottom: 0;
        margin-right: 10px;
        width: 25px;
        height: 25px;
        line-height: 21px;
        font-size: 12px;
    }
    
    /* 移动端表单调整 */
    .page-right {
        padding: 20px 15px;
    }
    
    .page-right h5.text-center {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .input-group-text.btn-rounded {
        min-width: 110px;
        font-size: 13px;
    }
}
/* ============================================
   模态框样式 - 重置密码等模态框
   ============================================ */

/* 模态框通用样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

/* 模态框内的表单样式 */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .input-group {
    width: 100%;
}

/* 模态框内输入框样式 */
.modal-body .input-group-text.btn-rounded {
    min-width: 100px;
    font-size: 14px;
}

.modal-body .form-control.btn-rounded {
    font-size: 14px;
}

/* 错误提示样式 */
#error_tips {
    min-height: 30px;
    padding: 8px 0;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 成功提示样式 */
.text-success {
    color: #28a745 !important;
}

.text-success .fas.fa-check-circle {
    color: #28a745;
}

/* 密码提示文字 */
.modal-body small.text-muted {
    font-size: 12px;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body .input-group-text.btn-rounded {
        min-width: 90px;
        font-size: 13px;
    }
    
    .modal-body .form-control.btn-rounded {
        font-size: 13px;
    }
}
