
 :root {
     --primary-blue: #1677ff;
     --secondary-blue: #4096ff;
     --light-blue: #e6f4ff;
     --dark-blue: #0958d9;
     --darker-blue: #003eb3;
     --gray-border: #d9d9d9;
     --text-dark: #262626;
     --text-light: #8c8c8c;
     --text-white: #ffffff;
     --error-red: #ff4d4f;
     --success-green: #52c41a;
     --bg-gradient-start: #001529;
     --bg-gradient-end: #00284d;

     /*
      * 配色方案说明：
      * - 主蓝色: #1677ff (用于按钮、链接、高亮等)
      * - 深蓝色: #0958d9 (用于悬停状态、渐变)
      * - 更深蓝: #003eb3 (用于更深层次的渐变)
      * - 背景深蓝: #001529 (用于登录页左侧背景、框架导航栏)
      * - 背景次深蓝: #00284d (用于渐变结束、侧边栏)
      * - 浅蓝背景: #e6f4ff (用于输入框聚焦、选中状态背景)
      * 这套配色方案与框架的 skin-deepblue 主题保持一致
      */
 }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-gradient-start);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 - 类似线条环绕效果 */
.background-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circle-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    border-width: 2px;
}

.circle-2 {
    width: 800px;
    height: 800px;
    bottom: -300px;
    right: -300px;
    border-width: 1.5px;
}

.line-decoration {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.line-1 {
    width: 100%;
    height: 1px;
    top: 30%;
    transform: rotate(15deg);
}

.line-2 {
    width: 100%;
    height: 1px;
    bottom: 25%;
    transform: rotate(-15deg);
}

.dot-decoration {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    height: auto;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

/* 左侧图案区域 - 优化布局 */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* 顶部区域 - Logo左,图案右 */
.login-left-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 30px;
    padding: 0 10px; /* 增加左右内边距,让图案更靠右 */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
    font-weight: bold;
}

.logo-text {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
}

.pattern-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.globe-pattern {
    width: 280px;
    height: 280px;
    position: relative;
    margin-bottom: 30px;
}

.globe-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.1), rgba(9, 88, 217, 0.05));
    position: relative;
    overflow: hidden;
}

.globe-inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.2), rgba(9, 88, 217, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.fabric-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-blue);
}

.globe-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
}

.ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
}

.ring-3 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
}

.system-intro {
    text-align: center;
    color: var(--text-white);
    margin-top: 30px;
}

.system-intro h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.system-intro p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.company-info {
    position: absolute;
    bottom: 40px;
    left: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 右侧登录表单区域 */
.login-right {
    flex: 0 0 480px;
    background-color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 8px;
}

.login-form {
    width: 100%;
}

 /* 单选框样式 - 修正对号位置 */
 .radio-group {
     margin-bottom: 24px;
 }

 .radio-label {
     display: block;
     color: var(--text-dark);
     font-size: 14px;
     margin-bottom: 8px;
     font-weight: 500;
 }

 .radio-label-ru {
     display: inline-block;
     margin-left: 6px;
     color: var(--text-light);
     font-size: 12px;
     font-style: italic;
 }

 .radio-options {
     display: flex;
     gap: 12px;
 }

 .radio-option {
     flex: 1;
     position: relative;
 }

 .radio-input {
     display: none;
 }

 .radio-custom {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     padding: 12px 16px;
     border: 1px solid var(--gray-border);
     border-radius: 6px;
     background-color: white;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     font-size: 14px;
     font-weight: 500;
     color: var(--text-dark);
     text-align: center;
     position: relative;
 }

 .radio-custom i {
     font-size: 13px;
     transition: all 0.3s ease;
     width: 16px;
     height: 16px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .radio-custom:hover {
     border-color: var(--primary-blue);
     background-color: rgba(22, 119, 255, 0.05);
     transform: translateY(-1px);
     box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1);
 }

 .radio-input:checked + .radio-custom {
     background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
     color: white;
     border-color: var(--primary-blue);
     box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
 }

 .radio-input:checked + .radio-custom i {
     color: white;
     transform: scale(1.1);
 }

 /* 对号标记 - 修正样式 */
 .radio-input:checked + .radio-custom::after {
     content: '✓';
     position: absolute;
     top: -6px;
     right: -6px;
     width: 20px;
     height: 20px;
     background-color: var(--primary-blue);
     color: white;
     border-radius: 50%;
     font-size: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
     border: 2px solid white;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
     animation: radioCheck 0.3s ease-out;
     z-index: 2;
 }

 @keyframes radioCheck {
     from {
         transform: scale(0);
         opacity: 0;
     }
     to {
         transform: scale(1);
         opacity: 1;
     }
 }

 /* 对号标记的伪元素容器，确保对号居中 */
 .radio-option {
     position: relative;
 }

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 12px 16px 12px 44px;
    font-size: 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.form-control.error {
    border-color: var(--error-red);
}

.form-control.success {
    border-color: var(--primary-blue);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    z-index: 2;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.captcha-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.captcha-image-container {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    /* 移除背景色和边框,避免与验证码图片本身冲突 */
}

.captcha-image-container:hover {
    /* 移除边框颜色变化,仅保留位移反馈 */
    transform: translateY(-1px);
}

.captcha-image {
    width: 120px;
    height: 48px;
    display: block;
    object-fit: cover;
}

.captcha-input-container {
    flex: 1;
}

.captcha-refresh {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 16px;
}

.captcha-refresh:hover {
    color: var(--dark-blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border-radius: 4px;
    border: 1.5px solid var(--gray-border);
    transition: all 0.2s ease;
}

.remember-checkbox:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.remember-label {
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0px;
    margin-left: 5px;
}

.forgot-password {
    color: var(--primary-blue);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--darker-blue));
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.error-message {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: var(--error-red);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

.success-message {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: var(--success-green);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.success-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.validation-message {
    font-size: 13px;
    margin-top: 6px;
    padding-left: 4px;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.validation-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.validation-message.error {
    color: var(--error-red);
}

.validation-message.success {
    color: var(--success-green);
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) and (min-width: 769px) {
    .login-container {
        max-width: 900px;
        margin: 20px;
    }

    .login-left {
        padding: 40px;
        min-height: 450px;
    }

    .login-right {
        flex: 0 0 420px;
        padding: 40px 35px;
    }

    .globe-pattern {
        width: 240px;
        height: 240px;
    }

    .fabric-icon {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .system-intro h2 {
        font-size: 24px;
    }

    .system-intro p {
        font-size: 14px;
    }
}

/* 手机端 - 验证码优化 */
@media (max-width: 768px) {
    /* 增大验证码容器,提高可读性 */
    .captcha-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .captcha-input-container {
        width: 100%;
    }
    
    .captcha-image-container {
        width: 100%;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
        border: 1px solid #e4e7ed;
        border-radius: 10px;
        padding: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    /* 容器hover效果 */
    .captcha-image-container:hover {
        background: linear-gradient(135deg, #e8ecf1 0%, #d5dce6 100%);
        border-color: var(--primary-blue);
        box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
        transform: translateY(-1px);
    }
    
    /* 点击效果 */
    .captcha-image-container:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(22, 119, 255, 0.15);
    }
    
    .captcha-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        min-height: 60px;
        object-fit: contain;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        display: block;
        border-radius: 6px;
    }
    
    /* 刷新提示 */
    .captcha-image-container::after {
        content: '点击刷新';
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        font-size: 12px;
        color: var(--primary-blue);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.9);
        padding: 2px 8px;
        border-radius: 4px;
    }
    
    .captcha-image-container:hover::after {
        opacity: 1;
    }
}

/* 小屏手机 - 进一步优化 */
@media (max-width: 480px) {
    .captcha-image-container {
        min-height: 44px;
        padding: 6px;
    }
    
    .captcha-image {
        max-width: 180px;
        min-height: 55px;
    }
    
    .captcha-image-container::after {
        font-size: 11px;
        right: 8px;
    }
}

/* 响应式设计 - 小屏设备和平板竖屏 */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        padding: 10px 0;
    }

    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 500px;
        margin: 10px;
        border-radius: 12px;
    }

    .login-left {
        padding: 35px 25px;
        min-height: 280px;
    }

    /* 顶部区域 - Logo左，图案右 */
    .login-left-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 20px;
    }

    .logo-area {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 0;
    }

    .pattern-container {
        margin-top: 0;
    }

    .globe-pattern {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }

    .fabric-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .system-intro h2 {
        font-size: 22px;
    }

    .system-intro p {
        font-size: 13px;
        line-height: 1.5;
    }

    .company-info {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        text-align: center;
    }

    .login-right {
        flex: 1;
        padding: 35px 25px;
    }

    .login-header {
        margin-bottom: 30px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        height: 44px;
        font-size: 15px;
    }

    .captcha-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .captcha-input-container {
        flex: 1;
        min-width: 200px;
    }

    .captcha-image-container {
        flex-shrink: 0;
    }

    .login-btn {
        height: 44px;
        font-size: 15px;
    }

    /* 简化背景装饰以提升性能 */
    .background-decoration {
        display: none;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .login-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    /* 顶部蓝色区域 - 极致紧凑化 */
    .login-left {
        padding: 12px 12px 10px; /* 进一步压缩内边距 */
        min-height: auto;
    }

    /* 顶部布局 - Logo左,图案右 */
    .login-left-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 8px; /* 减小间距 */
        padding: 0 5px; /* 手机端也增加内边距 */
    }

    .logo-area {
        margin-bottom: 0; /* 移除下边距 */
    }

    .logo-icon {
        width: 26px; /* 更小 */
        height: 26px;
        font-size: 14px;
    }

    .logo-text {
        font-size: 14px; /* 更小 */
    }

    /* pattern-container 紧凑化 */
    .pattern-container {
        margin-top: 0;
    }

    /* pattern-container 紧凑化 */
    .pattern-container {
        margin-top: 0;
    }

    .globe-pattern {
        width: 70px; /* 进一步缩小适配小屏 */
        height: 70px;
        margin-bottom: 0;
        margin-left: 50%; /* 增加左边距,与Logo保持更好间距 */
    }

    .fabric-icon {
        width: 26px; /* 更小 */
        height: 26px;
        font-size: 12px;
    }

    .system-intro {
        margin-top: 0;
        margin-bottom: 0;
    }

    .system-intro h2 {
        font-size: 16px; /* 更小 */
        margin-bottom: 2px; /* 极致紧凑 */
    }

    .system-intro p {
        font-size: 10px; /* 更小 */
        line-height: 1.3; /* 更紧凑 */
        margin-bottom: 2px; /* 极致紧凑 */
    }

    .company-info {
        margin-top: 6px; /* 更小 */
    }

    .company-info p {
        font-size: 9px; /* 更小 */
    }

    /* 登录表单区域 */
    .login-right {
        padding: 10px 18px 25px;
    }

    .login-header {
        margin-bottom: 20px; /* 减小表单头部下边距 */
    }

    .login-title {
        margin-top: 10px;
        font-size: 20px;
        margin-bottom: 6px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 16px; /* 减小表单项间距 */
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        height: 42px;
        font-size: 14px;
        padding: 10px 14px 10px 40px;
    }

    .input-icon {
        left: 14px;
        font-size: 16px;
    }

    .password-toggle,
    .captcha-refresh {
        right: 14px;
        font-size: 16px;
    }

    /* 验证码容器 - 重新定制 */
    .captcha-container {
        flex-direction: column; /* 上下布局 */
        gap: 10px;
        align-items: stretch;
    }

    .captcha-input-container {
        width: 100%; /* 输入框全宽 */
        min-width: auto;
    }

    .captcha-image-container {
        width: 45%; /* 容器全宽 */
        padding: 0px; /* 内边距 */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
        border-radius: 8px; /* 圆角 */
    }

    /* 移除hover的渐变背景和边框,避免与验证码图片本身冲突 */
    .captcha-image-container:hover {
        transform: translateY(-1px); /* 轻微上移 */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 仅用阴影反馈 */
    }

    .captcha-image-container:active {
        transform: translateY(0); /* 点击复位 */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); /* 点击阴影 */
    }

    .captcha-image {
        width: 160px; /* 匹配后端生成的200x70,压缩显示 */
        height: 56px; /* 保持2.857:1比例 */
        object-fit: contain; /* 保持图片比例 */
        display: block;
        border-radius: 6px; /* 图片圆角 */
        image-rendering: -webkit-optimize-contrast; /* 优化图片渲染 */
        image-rendering: crisp-edges;
    }

    /* 记住我 & 忘记密码选项 - 紧凑化 */
    .form-options {
        margin-bottom: 12px; /* 从32px压缩到12px */
        gap: 8px; /* 添加间距 */
    }

    .remember-checkbox {
        width: 16px; /* 缩小复选框 */
        height: 16px;
        margin-right: 6px; /* 缩小右边距 */
    }

    .remember-label {
        font-size: 12px; /* 从14px缩小到12px */
    }

    .forgot-password {
        font-size: 12px; /* 从14px缩小到12px */
    }

    .login-btn {
        height: 42px;
        font-size: 14px;
    }

    .login-footer {
        margin-top: 20px;
        font-size: 12px;
    }

    .validation-message {
        font-size: 12px;
    }
}

/* 创建装饰性圆点 */
.create-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* 表单抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .login-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .radio-custom:hover {
        transform: none;
        box-shadow: none;
    }

    .captcha-image-container:hover {
        border-color: var(--gray-border);
    }

    /* 增大触摸目标 */
    .password-toggle,
    .captcha-refresh {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .remember-checkbox {
        width: 20px;
        height: 20px;
    }

    /* 防止文本选择 */
    .login-btn,
    .radio-custom,
    .captcha-image-container {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 5px 0;
    }

    .login-container {
        min-height: auto;
    }

    .login-left {
        min-height: 200px;
        padding: 20px;
    }

    .globe-pattern {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    .fabric-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .system-intro h2 {
        font-size: 18px;
    }

    .system-intro p {
        font-size: 12px;
        margin-top: 5px;
    }

    .login-right {
        padding: 20px;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        height: 38px;
        font-size: 14px;
    }

    .login-btn {
        height: 38px;
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-control {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 打印样式 */
@media print {
    .background-decoration,
    .login-left {
        display: none;
    }

    .login-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}