/* 现代化登录页面样式 */

/* 地球背景 */
.login-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(15, 32, 70, 1) 0%, rgba(6, 13, 28, 1) 100%);
    background-image: 
        url('https://static.lxzcdn.com/img/bg-Dpt6jdb3.jpg '),
        linear-gradient(135deg, #0f2046 0%, #1a3a52 50%, #0f2046 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed;
    z-index: 1;
    overflow: hidden;
}

/* 添加地球纹理效果 */
.login-hero-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: 
        radial-gradient(circle at 35% 35%, rgba(100, 180, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 65% 65%, rgba(70, 140, 220, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(147, 112, 219, 0.05) 0%, transparent 50%);
    border-radius: 50%;
    filter: blur(80px);
    animation: earthGlow 8s ease-in-out infinite;
}

/* 地球发光动画 */
@keyframes earthGlow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.8;
    }
}

/* 星星背景 */
.login-hero-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.1)),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.1)),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.1)),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0.1)),
        radial-gradient(1px 1px at 90% 90%, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.1));
    background-size: 200% 200%, 150% 150%, 180% 180%, 220% 220%, 170% 170%;
    background-position: 0% 0%, 40% 60%, 100% 0%, 30% 70%, 80% 100%;
    animation: starsMove 200s linear infinite;
    opacity: 0.6;
}

@keyframes starsMove {
    0% {
        background-position: 0% 0%, 40% 60%, 100% 0%, 30% 70%, 80% 100%;
    }
    100% {
        background-position: 100% 100%, 140% 160%, 200% 100%, 130% 170%, 180% 200%;
    }
}

/* 登录容器 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
}

.login-content {
    text-align: center;
    color: white;
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题区域 */
.login-header {
    margin-bottom: 40px;
}

.login-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.login-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* 统计信息 */
.login-stats {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-number {
    color: #64B8FF;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(100, 184, 255, 0.3);
}

/* 错误提示 */
.login-error-alert {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #FF6B6B;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    animation: shake 0.5s ease-in-out;
    backdrop-filter: blur(10px);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 按钮区域 */
.login-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 动作按钮 */
.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-action:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.3em;
}

.btn-text {
    display: inline-block;
}

/* 浏览按钮 - 蓝色 */
.btn-explore {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-explore:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    filter: brightness(1.1);
}

/* 上传按钮 - 红色 */
.btn-upload {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-upload:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
    filter: brightness(1.1);
}

/* 用户中心按钮 - 绿色 */
.btn-user {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-user:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    filter: brightness(1.1);
}

/* 登录模态框 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 模态框内容 */
.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.modal-desc {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-modal-action {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-action:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* 登录表单包装器 */
.login-form-wrapper {
    padding: 50px 40px;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-input:focus {
    outline: none;
    border-color: #3B82F6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.form-link {
    color: #3B82F6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-buttons {
        gap: 12px;
    }
    
    .btn-action {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        font-size: 1.1em;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 30px;
    }
    
    .login-form-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-stats {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px;
    }
    
    .login-form-wrapper {
        padding: 35px 25px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}
