/* 深色渐变主题风格 - 适配抖音自动续火花系统 */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0f0c29;
    --darker-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #667eea;
    --accent-hover: #764ba2;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* 背景动画效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.05) 0%, transparent 30%);
    animation: backgroundPulse 15s ease infinite;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部导航 - 毛玻璃效果 */
.header {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid var(--card-border);
}

.user-menu a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Logo区域 - 发光效果 */
.logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo h1 {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 登录/注册框 - 玻璃拟态 */
.login-box {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    margin: 60px auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 标签切换 - 霓虹效果 */
.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 表单 - 玻璃输入框 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 15px;
    color: #000000 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* 验证码输入 */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
}

.captcha-row img {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.captcha-row img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 按钮 - 渐变发光 */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 链接 - 霓虹效果 */
.links {
    text-align: center;
    margin-top: 25px;
}

.links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.links a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.7);
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
}

/* Tab内容切换 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空状态 - 玻璃卡片 */
.empty-state {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.empty-state a {
    display: inline-block;
    background: var(--secondary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.empty-state a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-box {
        margin: 20px;
        padding: 25px;
        border-radius: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-menu {
        font-size: 14px;
    }
    
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功提示 - 霓虹效果 */
.success-message {
    background: var(--success-gradient);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(79, 172, 254, 0.7); }
    100% { box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4); }
}

/* 错误提示 - 红色霓虹 */
.error-message {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
}
