* {
    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: 20px 10px;
    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: 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 95vw;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
    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: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 优化后的表单组样式 - 更紧凑 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #cccccc;
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 38px;
}

input:focus {
    outline: none;
    border-color: #009688;
    background: rgba(255, 255, 255, 0.15);
}

/* 验证码容器优化 */
.captcha-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap; /* 确保不换行 */
}

.captcha-input {
    flex: 1;
    min-width: 0; /* 允许输入框缩小 */
}

.refresh-btn {
    height: 40px; 
    width:150px;
    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);
}

/* 注册按钮优化 */
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #009688, #016b60);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.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: 11px;
}

/* 复选框和链接样式优化 */
input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.form-group a {
    color: #009688;
    text-decoration: none;
    font-size: 13px;
}

.form-group a:hover {
    text-decoration: underline;
}

/* 标签内容样式 */
.tab-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 - 针对笔记本和移动设备优化 */
@media (max-width: 1200px) {
    .login-container {
        width: 380px;
        padding: 25px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .login-container {
        width: 95%;
        max-width: 360px;
        padding: 25px;
    }
    
    body {
        min-height: 600px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 5px;
        align-items: flex-start;
    }
    
    .login-container {
        width: 95%;
        padding: 15px;
        margin-top: 0;
    }
    
    /* 减小logo尺寸 */
    .logo img {
        width: 50px !important;
        height: 50px !important;
    }
    
    h1 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    /* 移除垂直布局，保持水平排列 */
    .captcha-container {
        flex-direction: row;
    }
    
    .captcha-input {
        width: auto;
        flex: 1;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 10px;
    }

}