* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    width: 400px;
    max-width: 95vw;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    margin: 10px;
    overflow: visible;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #009688;
    background: rgba(255, 255, 255, 0.15);
}

.captcha-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    overflow: visible;
    flex-wrap: nowrap; /* 确保不换行 */
}

.captcha-input {
    flex: 1;
    min-width: 0; /* 允许输入框缩小 */
}

.refresh-btn {
    width:120px;
    height: 40px;
    flex-shrink: 0; /* 验证码图片不缩小 */
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: #009688;
    color: white;
    object-fit: cover;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: scale(1.05);
}

.refresh-btn:hover {
    background: #009688;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #009688, #016b60);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-text {
    text-align: center;
    margin-top: 20px;
    color: #888888;
    font-size: 12px;
}

.support{color:#fff;display: none;}
.support .th{margin-bottom: 5px;color:#f00;}
.support .th i.layui-icon-tips{color:#f00;font-size: 15px;}

/* 登录方式切换标签 */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #404040;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #cccccc;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #009688;
    border-bottom-color: #009688;
}

.tab-btn:hover:not(.active) {
    color: #ffffff;
}

/* 标签内容 */
.tab-content {
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-content.active {
    display: block;
}

/* 二维码登录区域 */
.qrcode-container {
    text-align: center;
    padding: 20px 0;
}

#qrcode {
    border: 1px solid #404040;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto 20px;
}

#qrcode img{width: 100%;}

/* 响应式设计 - 平板和较大手机 */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
        align-items: flex-start;
    }
    
    .login-container {
        width: 95%;
        max-width: 360px;
        padding: 25px;
        margin: 0;
    }
    
    /* 确保logo不会溢出 */
    .logo img {
        max-width: 60px;
        max-height: 60px;
    }
    
    h1 {
        font-size: 20px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    body {
        padding: 10px 5px;
        align-items: flex-start;
    }
    
    .login-container {
        width: 100%;
        padding: 20px 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* 减小logo尺寸 */
    .logo img {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px;
        max-height: 50px;
    }
    
    h1 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    #qrcode {
        width: 160px !important;
        height: 160px !important;
    }
    
    /* 确保验证码不换行 */
    .captcha-container {
        flex-direction: row;
        gap: 5px;
    }
    
    .captcha-input {
        width: auto;
        flex: 1;
        margin-bottom: 0;
        min-width: 0;
    }
    
    .refresh-btn {
        width: 120px;
        height: 36px;
        flex-shrink: 0;
    }
}