/* ============================
   User Page Styling
   ============================ */

/* 用户页面主容器 */
.user-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2rem 0;
    position: relative;
}

.user-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.user-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.user-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 用户页面头部 */
.user-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(30, 60, 114, 0.1);
}

.user-title {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* 用户表单容器 */
.user-form-container {
    margin-bottom: 3rem;
}

.user-form {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 登录提示样式 */
.user-login-required {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(255, 107, 107, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-required-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.user-login-required h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.user-login-required p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 操作按钮 */
.login-actions,
.fallback-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.5);
}

/* 后备内容样式 */
.fallback-content {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.fallback-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 快速链接 */
.user-quick-links {
    padding-top: 2rem;
    border-top: 1px solid rgba(30, 60, 114, 0.1);
}

.user-quick-links h3 {
    color: #1e3c72;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-link:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #1e3c72;
}

.quick-link-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

.quick-link-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.logout-link {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    border: 1px solid rgba(197, 48, 48, 0.1);
}

.logout-link:hover {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #9b2c2c;
}

/* Ultimate Member 表单覆盖样式 */
.user-form .um-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.user-form .um-form .um-field {
    margin-bottom: 1.5rem;
}

.user-form .um-form .um-field-label {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.user-form .um-form input[type="text"],
.user-form .um-form input[type="email"],
.user-form .um-form input[type="password"],
.user-form .um-form textarea,
.user-form .um-form select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.user-form .um-form input[type="text"]:focus,
.user-form .um-form input[type="email"]:focus,
.user-form .um-form input[type="password"]:focus,
.user-form .um-form textarea:focus,
.user-form .um-form select:focus {
    border-color: #1e3c72;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.user-form .um-form .um-button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.user-form .um-form .um-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-wrapper {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .user-title {
        font-size: 2rem;
    }
    
    .user-subtitle {
        font-size: 1rem;
    }
    
    .user-form {
        padding: 2rem 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .login-actions,
    .fallback-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .user-page {
        padding: 1rem 0;
    }
    
    .user-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .user-title {
        font-size: 1.8rem;
    }
    
    .user-form {
        padding: 1.5rem 1rem;
    }
    
    .quick-link {
        padding: 0.8rem 1rem;
    }
    
    .user-login-required {
        padding: 2rem 1.5rem;
    }
    
    .login-required-icon {
        font-size: 3rem;
    }
} 