/* 官方淡色主题背景 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 50% 50%, #ffffff, #f8fafc, #f1f5f9),
        linear-gradient(45deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(147, 197, 253, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    opacity: 0.9;
    pointer-events: none;
}

/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    text-shadow: none;
}

body {
    background: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(10px) saturate(150%);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo a {
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233b82f6"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
}

/* 主要内容 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* 登录容器 */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px) saturate(110%);
    border-radius: 12px;
    width: 100%;
    max-width: 600px; /* 增加宽度 */
    /* 极致扁平化：移除边框，最小化阴影 */
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    /* 确保容器在屏幕中央 */
    margin: auto;
}

.login-header {
    text-align: center;
    padding: 20px 20px; /* 减少顶部和底部内边距，降低高度 */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    /* 移除底部边框 */
}

.login-title {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.login-form-container {
    padding: 20px 30px; /* 减少顶部和底部内边距，降低高度 */
}

/* 表单样式 */
.form-tabs {
    display: flex;
    margin-bottom: 20px;
    /* 移除底部边框 */
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: #3b82f6;
}

.tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 500;
}

.form-content {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(59, 130, 246, 0.02);
    /* 移除边框，实现无边框效果 */
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    color: #1e293b;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

.error-message {
    color: #ef4444;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(239, 68, 68, 0.05);
    display: none;
    /* 移除边框 */
}

.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.register-link a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.register-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(10px) saturate(150%);
    padding: 40px 5%;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: #94a3b8;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .header {
        padding: 10px 5%;
    }
    
    .login-container {
        padding: 20px;
    }
    
    .login-form-container {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}