* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6B8CFF 0%, #5C7AEA 100%);
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

/* 粒子画布样式 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    width: 100%;
    max-width: 780px;
    min-width: 320px;
    min-height: 500px;
    max-height: none;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.brand-section {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
    color: white;
    padding: 40px 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    border-radius: 24px 0 0 24px;
}

.logo {
    width: 90px; /* 适当增大logo */
    height: 90px; /* 适当增大logo */
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px; /* 调整间距 */
    color: white;
    font-size: 40px; /* 调整字体大小 */
    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.2);
}

.brand-section h1 {
    font-size: 30px; /* 适当增大标题 */
    font-weight: 600;
    margin-bottom: 10px; /* 调整间距 */
}

.brand-section h2 {
    font-size: 20px; /* 副标题大小 */
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 20px; /* 调整间距 */
}

.brand-section p {
    opacity: 0.9;
    font-size: 17px; /* 适当增大字体 */
    line-height: 1.5;
    max-width: 300px; /* 调整最大宽度 */
    margin-bottom: 35px;
}

/* 功能亮点样式 */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
    width: 100%;
    max-width: 320px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.feature i {
    font-size: 26px;
    color: white;
}

.feature span {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.95;
}

.login-section {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 0 24px 24px 0;
    max-height: none;
    overflow-y: visible;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* 登录标题样式 */
.login-title {
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-align: center;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e1e5eb;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 19px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #5C7AEA;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px; /* 从4px缩小到3px */
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
    border-radius: 3px 3px 0 0; /* 从4px缩小到3px */
}

.tab-btn:hover {
    color: #5C7AEA;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 22px; /* 调整间距使其更加舒适 */
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px; /* 调整间距 */
    font-weight: 500;
    color: #444;
    font-size: 17px; /* 调整字体大小 */
    text-align: left; /* 确保左对齐 */
}

/* 验证码标签样式，保持与其他标签一致的对齐 */
.form-group:has(.vc-input-group) label {
    /* 移除左移，保持与其他标签一致 */
}

.input-icon {
    position: absolute;
    top: 60%;
    left: 16px; /* 调整图标位置 */
    color: #5C7AEA;
    font-size: 21px; /* 调整图标大小 */
}

.form-control {
    width: 100%;
    padding: 16px 16px 16px 48px; /* 调整内边距使其更加舒适 */
    border: 2px solid #e1e5eb;
    border-radius: 14px;
    font-size: 17px; /* 调整字体大小 */
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #5C7AEA;
    box-shadow: 0 0 0 3px rgba(92, 122, 234, 0.2);
    outline: none;
    background: white;
}

.btn {
    width: 100%;
    padding: 16px; /* 调整按钮内边距 */
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 17px; /* 调整字体大小 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px; /* 调整间距 */
}

.btn:hover {
    background: linear-gradient(to right, #4A6AD9, #3249A1);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.footer {
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 15px;
    color: #666;
    display: block;
    position: relative;
    z-index: 10;
}

.footer a {
    color: #5C7AEA;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.footer a:hover {
    text-decoration: underline;
}

.vc-input-group {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px; /* 调整间距 */
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.vc-input-group .input-icon {
    top: 50%; /* 设置为50%以垂直居中 */
    transform: translateY(-50%); /* 使用transform调整位置 */
}

.vc-input-group .form-control {
    flex: 1;
    padding-left: 55px; /* 调整内边距 */
}

.vc-btn {
    white-space: nowrap;
    padding: 16px 22px; /* 调整按钮内边距 */
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
    border: none;
    border-radius: 14px; /* 调整圆角 */
    color: white;
    font-size: 15px; /* 调整字体大小 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.vc-btn:hover {
    background: linear-gradient(to right, #4A6AD9, #3249A1);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.vc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s ease;
    max-width: 350px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(to right, #00b09b, #96c93d);
}

.notification.error {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
}

.notification.info {
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
}

/* 模态框内部通知样式 */
.modal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s ease;
    max-width: 350px;
}

.modal-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.modal-notification.success {
    background: linear-gradient(to right, #00b09b, #96c93d);
}

.modal-notification.error {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
}

.modal-notification.info {
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(38px); /* 从45px缩小到38px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px; /* 从24px缩小到20px */
    box-shadow: 0 17px 34px rgba(92, 122, 234, 0.3); /* 从20px缩小到17px */
    width: 90%;
    max-width: 510px; /* 从600px缩小到510px (85%) */
    animation: modalFadeIn 0.4s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-38px); /* 从45px缩小到38px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(to right, #5C7AEA, #3D56B2);
    color: white;
    padding: 25px; /* 从30px缩小到25px */
    text-align: center;
    position: relative;
}

.modal-header h2 {
    font-size: 28px; /* 从33px缩小到28px */
}

.close-btn {
    position: absolute;
    top: 25px; /* 从30px缩小到25px */
    right: 25px; /* 从30px缩小到25px */
    font-size: 31px; /* 从36px缩小到31px */
    cursor: pointer;
    color: white;
}

.modal-body {
    padding: 38px; /* 从45px缩小到38px */
    position: relative;
}

.password-info {
    font-size: 16px; /* 从19px缩小到16px */
    color: #666;
    margin-top: 7px; /* 从8px缩小到7px */
    margin-bottom: 19px; /* 从22px缩小到19px */
}

/* 忘记密码模态框特定样式 */
.forgot-password-text {
    text-align: center;
    margin-bottom: 25px; /* 从30px缩小到25px */
}

.wechat-id {
    text-align: center;
    font-size: 27px; /* 从32px缩小到27px */
    font-weight: bold;
    color: #4b6cb7;
}

.wechat-note {
    text-align: center;
    margin-top: 34px; /* 从40px缩小到34px */
    color: #666;
    font-size: 16px; /* 从19px缩小到16px */
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        max-width: 550px; /* 调整最大宽度 */
        width: 100%;
        min-height: auto;
        max-height: none;
    }

    .brand-section {
        padding: 35px 30px; /* 调整内边距 */
        border-radius: 24px 24px 0 0;
    }

    .login-section {
        padding: 35px 30px; /* 调整内边距 */
        border-radius: 0 0 24px 24px;
    }
}

@media (max-width: 576px) {
    /* 移动端品牌信息部分调整 */
    .brand-section h1 {
        font-size: 26px;
    }
    
    .brand-section h2 {
        font-size: 18px;
    }
    
    .brand-section p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .features {
        gap: 15px;
        margin-top: 15px;
    }
    
    .feature {
        padding: 12px;
    }
    
    .feature i {
        font-size: 20px;
    }
    
    .feature span {
        font-size: 13px;
    }
    
    body {
        padding: 15px;
        min-height: 100vh;
        -webkit-box-align: flex-start;
        -ms-flex-align: flex-start;
        align-items: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container {
        border-radius: 18px;
        min-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    .logo {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .brand-section h1 {
        font-size: 26px;
    }

    .brand-section p {
        font-size: 16px;
    }

    .tab-btn {
        font-size: 16px;
        padding: 14px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-control {
        font-size: 16px;
        padding: 15px 15px 15px 45px;
    }

    .input-icon {
        font-size: 18px;
        top: 50%;
        left: 14px;
    }

    .btn {
        font-size: 16px;
        padding: 16px;
    }

    .vc-input-group {
        gap: 12px;
    }

    .vc-input-group .form-control {
        padding-left: 50px;
    }

    .vc-btn {
        font-size: 13px;
        padding: 15px 16px;
    }

    .footer {
        font-size: 14px;
        padding: 18px 0 0;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .wechat-id {
        font-size: 20px;
    }

    .wechat-note {
        font-size: 14px;
        margin-top: 25px;
    }

    /* 移动端模态框通知样式调整 */
    .modal-notification {
        top: 15px;
        right: 15px;
        padding: 15px 20px;
        font-size: 16px;
        max-width: 85%;
    }
}